private EntityTypeMapping FindConditionTypeMapping( EntityType entityType, bool requiresSplit, EntityTypeMapping propertiesTypeMapping) { EntityTypeMapping typeMapping = propertiesTypeMapping; if (requiresSplit) { if (!entityType.Abstract) { typeMapping = propertiesTypeMapping.Clone(); typeMapping.RemoveIsOfType(typeMapping.EntityType); this._databaseMapping.GetEntitySetMappings().Single <EntitySetMapping>((Func <EntitySetMapping, bool>)(esm => esm.EntityTypeMappings.Contains(propertiesTypeMapping))).AddTypeMapping(typeMapping); } propertiesTypeMapping.MappingFragments.Each <MappingFragment>((Action <MappingFragment>)(tmf => tmf.ClearConditions())); } return(typeMapping); }