diff --git a/Ebuy.Common/DataAccess/EbuyDataContext.cs b/Ebuy.Common/DataAccess/EbuyDataContext.cs index ad1348c..cc1e221 100644 --- a/Ebuy.Common/DataAccess/EbuyDataContext.cs +++ b/Ebuy.Common/DataAccess/EbuyDataContext.cs @@ -1,4 +1,5 @@ using System.Data.Entity; +using Ebuy.Mappings; namespace Ebuy.DataAccess { @@ -16,10 +17,7 @@ public EbuyDataContext() protected override void OnModelCreating(DbModelBuilder modelBuilder) { - modelBuilder.Entity() - .HasRequired(x => x.Auction) - .WithMany() - .WillCascadeOnDelete(false); + modelBuilder.Configurations.Add(new BidConfiguration()); } } } \ No newline at end of file diff --git a/Ebuy.Common/Ebuy.Common.csproj b/Ebuy.Common/Ebuy.Common.csproj index 992b41c..1a9d471 100644 --- a/Ebuy.Common/Ebuy.Common.csproj +++ b/Ebuy.Common/Ebuy.Common.csproj @@ -12,6 +12,8 @@ v4.5 512 + ..\ + true true @@ -49,6 +51,7 @@ + @@ -69,6 +72,7 @@ +