public virtual void BuildModel_AdventureWorks() { var builder = new DbModelBuilder(); AdventureWorksContext.ConfigureModel(builder); builder.Build(new SqlConnection(AdventureWorksFixture.ConnectionString)); }
public virtual void BuildModel_AdventureWorks() { var builder = new ModelBuilder(SqlServerConventionSetBuilder.Build()); AdventureWorksContext.ConfigureModel(builder); // ReSharper disable once UnusedVariable var model = builder.Model; }
public void BuildModel_AdventureWorks(IMetricCollector collector) { collector.StartCollection(); var builder = new DbModelBuilder(); AdventureWorksContext.ConfigureModel(builder); var model = builder.Build(new SqlConnection(AdventureWorksFixtureBase.ConnectionString)); collector.StopCollection(); Assert.Equal(67, model.ConceptualModel.EntityTypes.Count()); }
public void BuildModel_AdventureWorks(IMetricCollector collector) { collector.StartCollection(); var builder = new ModelBuilder(SqlServerConventionSetBuilder.Build()); AdventureWorksContext.ConfigureModel(builder); var model = builder.Model; collector.StopCollection(); Assert.Equal(67, model.GetEntityTypes().Count()); }
public void BuildModel_AdventureWorks(IMetricCollector collector) { collector.StartCollection(); var conventions = new SqlServerConventionSetBuilder(new SqlServerTypeMapper()) .AddConventions(new CoreConventionSetBuilder().CreateConventionSet()); var builder = new ModelBuilder(conventions); AdventureWorksContext.ConfigureModel(builder); var model = builder.Model; collector.StopCollection(); Assert.Equal(67, model.GetEntityTypes().Count()); }