mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-05-16 04:59:37 +08:00
26 lines
920 B
C#
26 lines
920 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity.ModelConfiguration;
|
|
using OpenAuth.Domain;
|
|
|
|
namespace OpenAuth.Repository.Models.Mapping
|
|
{
|
|
public class PageElementGrantMap : EntityTypeConfiguration<PageElementGrant>
|
|
{
|
|
public PageElementGrantMap()
|
|
{
|
|
// Primary Key
|
|
this.HasKey(t => t.Id);
|
|
|
|
// Properties
|
|
// Table & Column Mappings
|
|
this.ToTable("PageElementGrant");
|
|
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.PostId).HasColumnName("PostId");
|
|
this.Property(t => t.GrantType).HasColumnName("GrantType");
|
|
}
|
|
}
|
|
}
|