Beispiel #1
0
        internal void ConfigureTablesAndConditions(
            EntityTypeMapping entityTypeMapping,
            DbDatabaseMapping databaseMapping,
            ICollection <EntitySet> entitySets,
            DbProviderManifest providerManifest)
        {
            EntityType entityType = entityTypeMapping != null ? entityTypeMapping.EntityType : databaseMapping.Model.GetEntityType(this.ClrType);

            if (this._entityMappingConfigurations.Any <EntityMappingConfiguration>())
            {
                for (int configurationIndex = 0; configurationIndex < this._entityMappingConfigurations.Count; ++configurationIndex)
                {
                    this._entityMappingConfigurations[configurationIndex].Configure(databaseMapping, entitySets, providerManifest, entityType, ref entityTypeMapping, this.IsMappingAnyInheritedProperty(entityType), configurationIndex, this._entityMappingConfigurations.Count, this._annotations);
                }
            }
            else
            {
                EntityTypeConfiguration.ConfigureUnconfiguredType(databaseMapping, entitySets, providerManifest, entityType, this._annotations);
            }
        }