c# - Data Mapper for Child Objects -


Assuming that we have a customer class in which there is a complex property called Address:

 

Code> public class customer {public string name {get; Set; } Public Address {Received; Set; }}

In order to continue the customer objects in the database, I need to implement the data mapper pattern. Do I have something similar to the Customer Data Mapping client and address or 2 different data mappers: Continuing on the client's account and the address card?

I want to know your thoughts on this.

Cheers,

MOSS

if you want With a hand map, I would recommend having two maps, with which is assigned to the addressDataMapper for that property on client request. It allows you to check mapping separately and Address Mapper can be re-used separately.

SQL or NHibernate from LINQ such as an LINM can take care of it for you.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -