public void Validate_Basic_DataServices_Attributes() { var modelBuilder = new DataServicesModelBuilder(); modelBuilder.Entity<DataServiceFoo>(); var databaseMapping = modelBuilder.BuildAndValidate(ProviderRegistry.Sql2008_ProviderInfo); var mws = databaseMapping.ToMetadataWorkspace(); var edmCollection = mws.GetItemCollection(DataSpace.CSpace); edmCollection.GetItem<EntityType>("CodeFirstNamespace.DataServiceFoo"); }
public void Validate_Basic_DataServices_Attributes() { var modelBuilder = new DataServicesModelBuilder(); modelBuilder.Entity <DataServiceFoo>(); var databaseMapping = modelBuilder.BuildAndValidate(ProviderRegistry.Sql2008_ProviderInfo); var mws = databaseMapping.ToMetadataWorkspace(); var edmCollection = mws.GetItemCollection(DataSpace.CSpace); edmCollection.GetItem <EntityType>("CodeFirstNamespace.DataServiceFoo"); }