Files
LeafWeb/Core/DAL/LeafWebContext.cs
T
2016-01-29 11:25:44 -05:00

20 lines
546 B
C#

using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using LeafWeb.Core.Models;
namespace LeafWeb.Core.DAL
{
public class LeafWebContext : DbContext
{
public DbSet<LeafInput> LeafInputs { get; set; }
public DbSet<LeafInputFile> LeafInputFiles { get; set; }
public DbSet<FluxnetSite> FluxnetSites { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
base.OnModelCreating(modelBuilder);
}
}
}