Files
LeafWeb/Core/DAL/LeafWebContext.cs
T
poprhythm 15d911c86b Add PhotosynthesisType and start SSH work
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
2016-02-09 15:27:02 -05:00

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);
}
}
}