modified: Core.Tests/Core.Tests.csproj modified: Core.Tests/Parsers/FluxnetSiteCsvParserTests.cs new file: Core.Tests/Remote/PiscalSshClientTests.cs modified: Core/Core.csproj modified: Core/DAL/LeafWebContext.cs modified: Core/DAL/LeafWebInitializer.cs modified: Core/Models/LeafInput.cs new file: Core/Models/PhotosynthesisType.cs new file: Core/Remote/IPiscalClient.cs Get Piscal
22 lines
677 B
C#
22 lines
677 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<LeafInputStatus> LeafInputStatus { get; set; }
|
|
public DbSet<FluxnetSite> FluxnetSites { get; set; }
|
|
public DbSet<PhotosynthesisType> PhotosynthesisTypes { get; set; }
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
}
|
|
}
|