private static EntitySet ConvertToEntitySet( EntityContainerEntitySet set, DbProviderManifest providerManifest, Converter.ConversionCache convertedItemCache, Dictionary <SchemaElement, GlobalItem> newGlobalItems) { EntitySet entitySet = new EntitySet(set.Name, set.DbSchema, set.Table, set.DefiningQuery, (EntityType)Converter.LoadSchemaElement((System.Data.Entity.Core.SchemaObjectModel.SchemaType)set.EntityType, providerManifest, convertedItemCache, newGlobalItems)); if (set.Documentation != null) { entitySet.Documentation = Converter.ConvertToDocumentation(set.Documentation); } Converter.AddOtherContent((SchemaElement)set, (MetadataItem)entitySet); return(entitySet); }
private static EntitySet GetEntitySet( EntityContainerEntitySet set, EntityContainer container) { return(container.GetEntitySetByName(set.Name, false)); }