private RelationModel readRelation(XmlElement el, EntityModelsCollection entities) { var relEntity = readEntity(el); var left = entities[el.Attributes["left"].Value]; var right = entities[el.Attributes["right"].Value]; var type = (RelationType)Enum.Parse(typeof(RelationType), el.Attributes["type"].Value); var role = el.Attributes["role"].Value; var rm = new RelationModel(left, right, type, role); rm.Properties = relEntity.Properties; rm.Rules = relEntity.Rules; return(rm); }
public DomainModel() { Entities = new EntityModelsCollection(); Relations = new RelationModelsCollection(); }