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.