mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-03 06:53:24 +08:00
调整了一下项目框架与前端JS代码
This commit is contained in:
27
OpenAuth.Repository/Models/Mapping/sysdiagramMap.cs
Normal file
27
OpenAuth.Repository/Models/Mapping/sysdiagramMap.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class sysdiagramMap : EntityTypeConfiguration<sysdiagram>
|
||||
{
|
||||
public sysdiagramMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.diagram_id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(128);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("sysdiagrams");
|
||||
this.Property(t => t.name).HasColumnName("name");
|
||||
this.Property(t => t.principal_id).HasColumnName("principal_id");
|
||||
this.Property(t => t.diagram_id).HasColumnName("diagram_id");
|
||||
this.Property(t => t.version).HasColumnName("version");
|
||||
this.Property(t => t.definition).HasColumnName("definition");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user