20 lines
546 B
C#
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);
|
|
}
|
|
}
|
|
}
|