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");
        }
示例#2
0
        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");
        }