24 lines
839 B
C#
24 lines
839 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity.ModelConfiguration;
|
|
|
|
namespace IntegrationTests.Models.Mapping
|
|
{
|
|
public class Scenario_SnapshotMap : EntityTypeConfiguration<Scenario_Snapshot>
|
|
{
|
|
public Scenario_SnapshotMap()
|
|
{
|
|
// Primary Key
|
|
this.HasKey(t => new { t.Id, t.ParentId });
|
|
|
|
// Properties
|
|
// Table & Column Mappings
|
|
this.ToTable("Scenario_Snapshot");
|
|
this.Property(t => t.Id).HasColumnName("Id");
|
|
this.Property(t => t.ParentId).HasColumnName("ParentId");
|
|
this.Property(t => t.UserId).HasColumnName("UserId");
|
|
this.Property(t => t.CreateDate).HasColumnName("CreateDate");
|
|
this.Property(t => t.FiscalYearId).HasColumnName("FiscalYearId");
|
|
}
|
|
}
|
|
}
|