Add VehiclePreviousLog
This commit is contained in:
@@ -12,6 +12,10 @@ namespace MileageTraker.Web.Models
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
|
||||
modelBuilder.Entity<Log>()
|
||||
.HasOptional(l => l.VehiclePreviousLog)
|
||||
.WithMany()
|
||||
.HasForeignKey(l => l.VehiclePreviousLogId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user