React to EF Changes: Remove Usage of BasicModelBuilder

This commit is contained in:
Smit Patel 2015-05-11 14:59:38 -07:00
parent 75d047795b
commit 499f62c596
2 changed files with 7 additions and 6 deletions

View File

@ -2,10 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic; using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure; using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Metadata.Builders; using Microsoft.Data.Entity.Metadata.ModelConventions;
using Microsoft.Data.Entity.Relational.Migrations; using Microsoft.Data.Entity.Relational.Migrations;
using Microsoft.Data.Entity.Relational.Migrations.Builders; using Microsoft.Data.Entity.Relational.Migrations.Builders;
using Microsoft.Data.Entity.Relational.Migrations.Infrastructure; using Microsoft.Data.Entity.Relational.Migrations.Infrastructure;
@ -35,7 +35,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
{ {
get get
{ {
var builder = new BasicModelBuilder(); var builder = new ModelBuilder(new ConventionSet());
builder.Entity("Blogging.Models.Blog", b => builder.Entity("Blogging.Models.Blog", b =>
{ {

View File

@ -2,9 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure; using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata; using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Metadata.Builders; using Microsoft.Data.Entity.Metadata.ModelConventions;
using Microsoft.Data.Entity.Relational.Migrations; using Microsoft.Data.Entity.Relational.Migrations;
using Microsoft.Data.Entity.Relational.Migrations.Builders; using Microsoft.Data.Entity.Relational.Migrations.Builders;
using Microsoft.Data.Entity.Relational.Migrations.Infrastructure; using Microsoft.Data.Entity.Relational.Migrations.Infrastructure;
@ -22,7 +23,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
{ {
public override IModel Model public override IModel Model
{ {
get { return new BasicModelBuilder().Model; } get { return new ModelBuilder(new ConventionSet()).Model; }
} }
} }
@ -41,7 +42,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
public override IModel Target public override IModel Target
{ {
get { return new BasicModelBuilder().Model; } get { return new ModelBuilder(new ConventionSet()).Model; }
} }
public override void Up(MigrationBuilder migrationBuilder) public override void Up(MigrationBuilder migrationBuilder)