mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-17 05:48:13 +08:00
Routine Update
This commit is contained in:
24
OpenAuth.Repository/Models/Mapping/ModuleElementGrantMap.cs
Normal file
24
OpenAuth.Repository/Models/Mapping/ModuleElementGrantMap.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user