예제 #1
0
 public static DslModeling::LinkedElementCollection <Entity> GetEntities(NHModel element)
 {
     return(GetRoleCollection <DslModeling::LinkedElementCollection <Entity>, Entity>(element, NHModelDomainRoleId));
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// Creates a NHModelHasEntities link in the same Partition as the given NHModel
 /// </summary>
 /// <param name="source">NHModel to use as the source of the relationship.</param>
 /// <param name="target">Entity to use as the target of the relationship.</param>
 public NHModelHasEntities(NHModel source, Entity target)
     : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(NHModelHasEntities.NHModelDomainRoleId, source), new DslModeling::RoleAssignment(NHModelHasEntities.EntityDomainRoleId, target) }, null)
 {
 }
예제 #3
0
 public static void SetNHModel(Entity element, NHModel newNHModel)
 {
     DslModeling::DomainRoleInfo.SetLinkedElement(element, EntityDomainRoleId, newNHModel);
 }