http://nhforge.org/doc/nh/en/index.html
Is there anything specific you are having problems with? Have you gotten started? I don't think many people will be willing to simply write the entire mapping for you. Another suggestion, unrelated to the issue of mappings. I get the impression that an object of the Personnel class represents a single person. In that case personnel is a strange name, since it refers to the group of employed persons as a whole. I.e. Siemen's personnel is a group of about 400000 persons. I suggest Person or Employee instead. Also, the IList<object> seems strange. Why not specific types? /Oskar 2010/1/19 mynkow <[email protected]>: > Ok. I will try to explain what is the purpose here. I have an > Organization class, Warehouse class and a Personnel class. > > 0) All rules for organization apply to warehouse. > 1) Each organization may have many personnels and each personnel may > have only one organization. > 2) Each organization may have (PRP)personal responsible person > (personnel). Each personnel can be personal responsible person to one > or many organizations and one or many warehouses. > > The idea is that I want to have the id of a personnel in Organization > table. Also I want to say "Hey, this is Peter. Please tell me > Organization/warehouse objects which peter is PRP." The classes can be > changed, the rules are important. > > public class Personnel > { > public string Name{get;name;} > public IList<object> OrgPRP{get;} > public IList<object> WarehousePRP{get;} > } > > public class Organization > { > public string Name{ get; set; } > public IList<Personnel> Personnels { get; }//there is a private > field here _personnels. > public IList<Warehouse> Warehouses { get; }//there is a private > field here _warehouses. > public Personnel PRP {get;set;} > } > > public class Warehouse > { > public string Name{ get; set; } > public Personnel PRP {get;set;} > } > > Best regards > mynkow > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > > >
-- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
