EnVisageOnline/Main/Source/IntegrationTests/Models/Mapping/GLAccountAccessMap.cs

29 lines
950 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace IntegrationTests.Models.Mapping
{
public class GLAccountAccessMap : EntityTypeConfiguration<GLAccountAccess>
{
public GLAccountAccessMap()
{
// Primary Key
this.HasKey(t => t.Id);
// Properties
this.Property(t => t.GLDepartmentArray)
.HasMaxLength(2000);
this.Property(t => t.GLDepartmentAccess)
.HasMaxLength(48);
// Table & Column Mappings
this.ToTable("GLAccountAccess");
this.Property(t => t.Id).HasColumnName("Id");
this.Property(t => t.ParentId).HasColumnName("ParentId");
this.Property(t => t.GLDepartmentArray).HasColumnName("GLDepartmentArray");
this.Property(t => t.GLDepartmentAccess).HasColumnName("GLDepartmentAccess");
}
}
}