Routine Update

This commit is contained in:
yubaolee
2015-11-13 23:25:46 +08:00
parent 4dac594250
commit 9df8c34126
27 changed files with 1229 additions and 2421 deletions

View File

@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using OpenAuth.Domain;
namespace OpenAuth.Repository.Models.Mapping
{
public class ModuleElementGrantMap : EntityTypeConfiguration<ModuleElementGrant>
{
public ModuleElementGrantMap()
{
// Primary Key
this.HasKey(t => t.Id);
// Properties
// Table & Column Mappings
this.ToTable("ModuleElementGrant");
this.Property(t => t.Id).HasColumnName("Id");
this.Property(t => t.ElementId).HasColumnName("ElementId");
this.Property(t => t.UserId).HasColumnName("UserId");
this.Property(t => t.RoleId).HasColumnName("RoleId");
this.Property(t => t.GrantType).HasColumnName("GrantType");
}
}
}