private void RemoveSSDLTable(SSDL.EntityType.EntityType ssdlTable) { if (MappingInit) { return; } foreach (var prop in Mapping.Keys.ToList()) { var propMapping = Mapping[prop]; if (propMapping.Count == 1) { Mapping.Remove(prop); } else { propMapping.Remove(ssdlTable); } } foreach (var complexProp in ComplexMapping.Keys.ToList()) { if (RemoveSSDLTableToComplexProperty(complexProp, ComplexMapping[complexProp], ssdlTable)) { ComplexMapping.Remove(complexProp); } } OnPropertyChanged("IsCompletlyMapped"); }
public void RemoveTPCMapping() { foreach (var scalarProp in Mapping.Keys.Where(sp => !sp.IsKey).Except(EntityType.ScalarProperties).ToList()) { Mapping.Remove(scalarProp); } foreach (var complexProp in ComplexMapping.Keys.Except(EntityType.ComplexProperties).ToList()) { ComplexMapping.Remove(complexProp); } }