public static DslModeling::LinkedElementCollection <Entity> GetEntities(NHModel element) { return(GetRoleCollection <DslModeling::LinkedElementCollection <Entity>, Entity>(element, NHModelDomainRoleId)); }
/// <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) { }
public static void SetNHModel(Entity element, NHModel newNHModel) { DslModeling::DomainRoleInfo.SetLinkedElement(element, EntityDomainRoleId, newNHModel); }