Client Development - hierarchical management

Client development, hierarchical management can be implemented:

1, the data layer (for example: http, socket, mq, etc., may be called the client database memory), in the data layer, the data model (i.e., the data entities) to be consistent with the interactive protocol (json to facilitate conversion);

2, service physical layer, the data structure and naming rule of the business entity is more in line with the client's "request", business entities from the data model (i.e., data layers) converted from (but in many projects, the layer is omitted, turn The direct use data model entities)

3, an interface layer, a data service entity (usually attached to the attribute) property bound to UI controls (WPF usually dependent additional attributes or attribute).

 

Guess you like

Origin www.cnblogs.com/changbaishan/p/11683578.html