Initial
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.ModelConfiguration.Conventions;
|
||||
|
||||
namespace MileageTraker.Web.Models
|
||||
{
|
||||
public class MileageTrakerContext : DbContext
|
||||
{
|
||||
public DbSet<Log> Logs { get; set; }
|
||||
public DbSet<Vehicle> Vehicles { get; set; }
|
||||
public DbSet<City> Cities { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user