mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-14 20:26:07 +08:00
全面修改Id为Guid类型,为2.0版做准备
This commit is contained in:
@@ -1,43 +1,58 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class CategoryMap : EntityTypeConfiguration<Category>
|
||||
public partial class CategoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Category>
|
||||
{
|
||||
public CategoryMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("Category", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.CascadeId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.CascadeId)
|
||||
.HasColumnName("CascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.RootKey)
|
||||
.HasColumnName("RootKey")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.RootName)
|
||||
.HasColumnName("RootName")
|
||||
.HasMaxLength(200)
|
||||
.IsRequired();
|
||||
Property(t => t.ParentId)
|
||||
.HasColumnName("ParentId")
|
||||
.IsOptional();
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.RootKey)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
this.Property(t => t.RootName)
|
||||
.IsRequired()
|
||||
.HasMaxLength(200);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Category");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.CascadeId).HasColumnName("CascadeId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.ParentId).HasColumnName("ParentId");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
this.Property(t => t.RootKey).HasColumnName("RootKey");
|
||||
this.Property(t => t.RootName).HasColumnName("RootName");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,38 +1,54 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class DicDetailMap : EntityTypeConfiguration<DicDetail>
|
||||
public partial class DicDetailMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<DicDetail>
|
||||
{
|
||||
public DicDetailMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("DicDetail", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Value)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.Value)
|
||||
.HasColumnName("Value")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.Text)
|
||||
.HasColumnName("Text")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.DicId)
|
||||
.HasColumnName("DicId")
|
||||
.IsRequired();
|
||||
|
||||
this.Property(t => t.Text)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
this.Property(t => t.Description)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("DicDetail");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Value).HasColumnName("Value");
|
||||
this.Property(t => t.Text).HasColumnName("Text");
|
||||
this.Property(t => t.DicId).HasColumnName("DicId");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.Description).HasColumnName("Description");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,37 +1,51 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class DicIndexMap : EntityTypeConfiguration<DicIndex>
|
||||
public partial class DicIndexMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<DicIndex>
|
||||
{
|
||||
public DicIndexMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("DicIndex", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Key)
|
||||
.HasColumnName("Key")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(200)
|
||||
.IsRequired();
|
||||
Property(t => t.CategoryId)
|
||||
.HasColumnName("CategoryId")
|
||||
.IsOptional();
|
||||
|
||||
this.Property(t => t.Key)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
this.Property(t => t.Description)
|
||||
.IsRequired()
|
||||
.HasMaxLength(200);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("DicIndex");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Key).HasColumnName("Key");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
this.Property(t => t.CategoryId).HasColumnName("CategoryId");
|
||||
this.Property(t => t.Description).HasColumnName("Description");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
62
OpenAuth.Repository/Models/Mapping/GoodsApplyMap.cs
Normal file
62
OpenAuth.Repository/Models/Mapping/GoodsApplyMap.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public partial class GoodsApplyMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<GoodsApply>
|
||||
{
|
||||
public GoodsApplyMap()
|
||||
{
|
||||
// table
|
||||
ToTable("GoodsApply", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.Sort)
|
||||
.HasColumnName("Sort")
|
||||
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
|
||||
.IsRequired();
|
||||
Property(t => t.Number)
|
||||
.HasColumnName("Number")
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(256)
|
||||
.IsOptional();
|
||||
Property(t => t.Comment)
|
||||
.HasColumnName("Comment")
|
||||
.IsRequired();
|
||||
Property(t => t.State)
|
||||
.HasColumnName("State")
|
||||
.HasMaxLength(1024)
|
||||
.IsRequired();
|
||||
Property(t => t.StateName)
|
||||
.HasColumnName("StateName")
|
||||
.HasMaxLength(1024)
|
||||
.IsOptional();
|
||||
Property(t => t.UserId)
|
||||
.HasColumnName("UserId")
|
||||
.IsRequired();
|
||||
Property(t => t.ControllerUserId)
|
||||
.HasColumnName("ControllerUserId")
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,62 +1,71 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class ModuleElementMap : EntityTypeConfiguration<ModuleElement>
|
||||
public partial class ModuleElementMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ModuleElement>
|
||||
{
|
||||
public ModuleElementMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("ModuleElement", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.DomId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.DomId)
|
||||
.HasColumnName("DomId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.Attr)
|
||||
.HasColumnName("Attr")
|
||||
.HasMaxLength(500)
|
||||
.IsRequired();
|
||||
Property(t => t.Script)
|
||||
.HasColumnName("Script")
|
||||
.HasMaxLength(500)
|
||||
.IsRequired();
|
||||
Property(t => t.Icon)
|
||||
.HasColumnName("Icon")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Class)
|
||||
.HasColumnName("Class")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Remark)
|
||||
.HasColumnName("Remark")
|
||||
.HasMaxLength(200)
|
||||
.IsRequired();
|
||||
Property(t => t.Sort)
|
||||
.HasColumnName("Sort")
|
||||
.IsRequired();
|
||||
Property(t => t.ModuleId)
|
||||
.HasColumnName("ModuleId")
|
||||
.IsRequired();
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Type)
|
||||
.IsRequired()
|
||||
.HasMaxLength(50);
|
||||
|
||||
this.Property(t => t.Attr)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
this.Property(t => t.Script)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
this.Property(t => t.Icon)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Class)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Remark)
|
||||
.IsRequired()
|
||||
.HasMaxLength(200);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("ModuleElement");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.DomId).HasColumnName("DomId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.ModuleId).HasColumnName("ModuleId");
|
||||
this.Property(t => t.Attr).HasColumnName("Attr");
|
||||
this.Property(t => t.Script).HasColumnName("Script");
|
||||
this.Property(t => t.Icon).HasColumnName("Icon");
|
||||
this.Property(t => t.Class).HasColumnName("Class");
|
||||
this.Property(t => t.Remark).HasColumnName("Remark");
|
||||
this.Property(t => t.Sort).HasColumnName("Sort");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,60 +1,76 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class ModuleMap : EntityTypeConfiguration<Module>
|
||||
public partial class ModuleMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Module>
|
||||
{
|
||||
public ModuleMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("Module", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.CascadeId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.CascadeId)
|
||||
.HasColumnName("CascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Url)
|
||||
.HasColumnName("Url")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.HotKey)
|
||||
.HasColumnName("HotKey")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.ParentId)
|
||||
.HasColumnName("ParentId")
|
||||
.IsRequired();
|
||||
Property(t => t.IsLeaf)
|
||||
.HasColumnName("IsLeaf")
|
||||
.IsRequired();
|
||||
Property(t => t.IsAutoExpand)
|
||||
.HasColumnName("IsAutoExpand")
|
||||
.IsRequired();
|
||||
Property(t => t.IconName)
|
||||
.HasColumnName("IconName")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.ParentName)
|
||||
.HasColumnName("ParentName")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Vector)
|
||||
.HasColumnName("Vector")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Url)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.HotKey)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.IconName)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.ParentName)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Vector)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Module");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.CascadeId).HasColumnName("CascadeId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Url).HasColumnName("Url");
|
||||
this.Property(t => t.HotKey).HasColumnName("HotKey");
|
||||
this.Property(t => t.ParentId).HasColumnName("ParentId");
|
||||
this.Property(t => t.IsLeaf).HasColumnName("IsLeaf");
|
||||
this.Property(t => t.IsAutoExpand).HasColumnName("IsAutoExpand");
|
||||
this.Property(t => t.IconName).HasColumnName("IconName");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.ParentName).HasColumnName("ParentName");
|
||||
this.Property(t => t.Vector).HasColumnName("Vector");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,63 +1,85 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class OrgMap : EntityTypeConfiguration<Org>
|
||||
public partial class OrgMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Org>
|
||||
{
|
||||
public OrgMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("Org", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.CascadeId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.CascadeId)
|
||||
.HasColumnName("CascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.HotKey)
|
||||
.HasColumnName("HotKey")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.ParentName)
|
||||
.HasColumnName("ParentName")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.IsLeaf)
|
||||
.HasColumnName("IsLeaf")
|
||||
.IsRequired();
|
||||
Property(t => t.IsAutoExpand)
|
||||
.HasColumnName("IsAutoExpand")
|
||||
.IsRequired();
|
||||
Property(t => t.IconName)
|
||||
.HasColumnName("IconName")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.IsRequired();
|
||||
Property(t => t.BizCode)
|
||||
.HasColumnName("BizCode")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.CustomCode)
|
||||
.HasColumnName("CustomCode")
|
||||
.HasMaxLength(4000)
|
||||
.IsRequired();
|
||||
Property(t => t.CreateTime)
|
||||
.HasColumnName("CreateTime")
|
||||
.IsRequired();
|
||||
Property(t => t.CreateId)
|
||||
.HasColumnName("CreateId")
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.ParentId)
|
||||
.HasColumnName("ParentId")
|
||||
.IsOptional();
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.HotKey)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.ParentName)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.IconName)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.BizCode)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.CustomCode)
|
||||
.IsRequired()
|
||||
.HasMaxLength(4000);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Org");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.CascadeId).HasColumnName("CascadeId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.HotKey).HasColumnName("HotKey");
|
||||
this.Property(t => t.ParentId).HasColumnName("ParentId");
|
||||
this.Property(t => t.ParentName).HasColumnName("ParentName");
|
||||
this.Property(t => t.IsLeaf).HasColumnName("IsLeaf");
|
||||
this.Property(t => t.IsAutoExpand).HasColumnName("IsAutoExpand");
|
||||
this.Property(t => t.IconName).HasColumnName("IconName");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.BizCode).HasColumnName("BizCode");
|
||||
this.Property(t => t.CustomCode).HasColumnName("CustomCode");
|
||||
this.Property(t => t.CreateTime).HasColumnName("CreateTime");
|
||||
this.Property(t => t.CreateId).HasColumnName("CreateId");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class ParamMap : EntityTypeConfiguration<Param>
|
||||
{
|
||||
public ParamMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Value)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
this.Property(t => t.Key)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
this.Property(t => t.Description)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Param");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Value).HasColumnName("Value");
|
||||
this.Property(t => t.Key).HasColumnName("Key");
|
||||
this.Property(t => t.CategoryId).HasColumnName("CategoryId");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.Description).HasColumnName("Description");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +1,56 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class RelevanceMap : EntityTypeConfiguration<Relevance>
|
||||
public partial class RelevanceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Relevance>
|
||||
{
|
||||
public RelevanceMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("Relevance", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Description)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.Key)
|
||||
.HasColumnName("Key")
|
||||
.HasMaxLength(100)
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.OperateTime)
|
||||
.HasColumnName("OperateTime")
|
||||
.IsRequired();
|
||||
Property(t => t.OperatorId)
|
||||
.HasColumnName("OperatorId")
|
||||
.IsRequired();
|
||||
Property(t => t.FirstId)
|
||||
.HasColumnName("FirstId")
|
||||
.IsRequired();
|
||||
Property(t => t.SecondId)
|
||||
.HasColumnName("SecondId")
|
||||
.IsRequired();
|
||||
|
||||
this.Property(t => t.Key)
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Relevance");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.FirstId).HasColumnName("FirstId");
|
||||
this.Property(t => t.SecondId).HasColumnName("SecondId");
|
||||
this.Property(t => t.Description).HasColumnName("Description");
|
||||
this.Property(t => t.Key).HasColumnName("Key");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.OperateTime).HasColumnName("OperateTime");
|
||||
this.Property(t => t.OperatorId).HasColumnName("OperatorId");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +1,61 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class ResourceMap : EntityTypeConfiguration<Resource>
|
||||
public partial class ResourceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Resource>
|
||||
{
|
||||
public ResourceMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("Resource", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.CascadeId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.CascadeId)
|
||||
.HasColumnName("CascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Key)
|
||||
.HasColumnName("Key")
|
||||
.HasMaxLength(200)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.CategoryId)
|
||||
.HasColumnName("CategoryId")
|
||||
.IsRequired();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(500)
|
||||
.IsRequired();
|
||||
Property(t => t.ParentId)
|
||||
.HasColumnName("ParentId")
|
||||
.IsOptional();
|
||||
|
||||
this.Property(t => t.Key)
|
||||
.IsRequired()
|
||||
.HasMaxLength(200);
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Description)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Resource");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.CascadeId).HasColumnName("CascadeId");
|
||||
this.Property(t => t.Key).HasColumnName("Key");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.ParentId).HasColumnName("ParentId");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
this.Property(t => t.CategoryId).HasColumnName("CategoryId");
|
||||
this.Property(t => t.Description).HasColumnName("Description");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,44 +1,61 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class RoleMap : EntityTypeConfiguration<Role>
|
||||
public partial class RoleMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Role>
|
||||
{
|
||||
public RoleMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("Role", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.IsRequired();
|
||||
Property(t => t.CreateTime)
|
||||
.HasColumnName("CreateTime")
|
||||
.IsRequired();
|
||||
Property(t => t.CreateId)
|
||||
.HasColumnName("CreateId")
|
||||
.HasMaxLength(64)
|
||||
.IsRequired();
|
||||
Property(t => t.OrgCascadeId)
|
||||
.HasColumnName("OrgCascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.OrgName)
|
||||
.HasColumnName("OrgName")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.OrgId)
|
||||
.HasColumnName("OrgId")
|
||||
.IsOptional();
|
||||
|
||||
this.Property(t => t.CreateId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(64);
|
||||
|
||||
this.Property(t => t.OrgCascadeId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.OrgName)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Role");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.CreateTime).HasColumnName("CreateTime");
|
||||
this.Property(t => t.CreateId).HasColumnName("CreateId");
|
||||
this.Property(t => t.OrgId).HasColumnName("OrgId");
|
||||
this.Property(t => t.OrgCascadeId).HasColumnName("OrgCascadeId");
|
||||
this.Property(t => t.OrgName).HasColumnName("OrgName");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,14 +6,13 @@
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public partial class StockMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Stock>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Stock>
|
||||
{
|
||||
public StockMap()
|
||||
{
|
||||
@@ -41,13 +40,16 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.User)
|
||||
.HasColumnName("User")
|
||||
Property(t => t.Viewable)
|
||||
.HasColumnName("Viewable")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.Time)
|
||||
.HasColumnName("Time")
|
||||
.IsRequired();
|
||||
Property(t => t.OrgId)
|
||||
.HasColumnName("OrgId")
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class UserCfgMap : EntityTypeConfiguration<UserCfg>
|
||||
{
|
||||
public UserCfgMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Theme)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Skin)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.NavBarStyle)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.TabFocusColor)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("UserCfg");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Theme).HasColumnName("Theme");
|
||||
this.Property(t => t.Skin).HasColumnName("Skin");
|
||||
this.Property(t => t.NavBarStyle).HasColumnName("NavBarStyle");
|
||||
this.Property(t => t.TabFocusColor).HasColumnName("TabFocusColor");
|
||||
this.Property(t => t.NavTabIndex).HasColumnName("NavTabIndex");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class UserExtMap : EntityTypeConfiguration<UserExt>
|
||||
{
|
||||
public UserExtMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Email)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Phone)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Mobile)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Address)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Zip)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Birthday)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.IdCard)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Qq)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.DynamicField)
|
||||
.IsRequired()
|
||||
.HasMaxLength(4000);
|
||||
|
||||
this.Property(t => t.Remark)
|
||||
.IsRequired()
|
||||
.HasMaxLength(4000);
|
||||
|
||||
this.Property(t => t.Field1)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Field2)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Field3)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("UserExt");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Email).HasColumnName("Email");
|
||||
this.Property(t => t.Phone).HasColumnName("Phone_");
|
||||
this.Property(t => t.Mobile).HasColumnName("Mobile");
|
||||
this.Property(t => t.Address).HasColumnName("Address");
|
||||
this.Property(t => t.Zip).HasColumnName("Zip");
|
||||
this.Property(t => t.Birthday).HasColumnName("Birthday");
|
||||
this.Property(t => t.IdCard).HasColumnName("IdCard");
|
||||
this.Property(t => t.Qq).HasColumnName("QQ");
|
||||
this.Property(t => t.DynamicField).HasColumnName("DynamicField");
|
||||
this.Property(t => t.ByteArrayId).HasColumnName("ByteArrayId");
|
||||
this.Property(t => t.Remark).HasColumnName("Remark");
|
||||
this.Property(t => t.Field1).HasColumnName("Field1");
|
||||
this.Property(t => t.Field2).HasColumnName("Field2");
|
||||
this.Property(t => t.Field3).HasColumnName("Field3");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,45 +1,66 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class UserMap : EntityTypeConfiguration<User>
|
||||
public partial class UserMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<User>
|
||||
{
|
||||
public UserMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("User", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey<Guid>(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Account)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.Account)
|
||||
.HasColumnName("Account")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Password)
|
||||
.HasColumnName("Password")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Sex)
|
||||
.HasColumnName("Sex")
|
||||
.IsRequired();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.IsRequired();
|
||||
Property(t => t.BizCode)
|
||||
.HasColumnName("BizCode")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.CreateTime)
|
||||
.HasColumnName("CreateTime")
|
||||
.IsRequired();
|
||||
Property(t => t.CrateId)
|
||||
.HasColumnName("CrateId")
|
||||
.IsOptional();
|
||||
|
||||
this.Property(t => t.Password)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.BizCode)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("User");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.Account).HasColumnName("Account");
|
||||
this.Property(t => t.Password).HasColumnName("Password");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Sex).HasColumnName("Sex");
|
||||
this.Property(t => t.Status).HasColumnName("Status");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.BizCode).HasColumnName("BizCode");
|
||||
this.Property(t => t.CreateTime).HasColumnName("CreateTime");
|
||||
this.Property(t => t.CreateId).HasColumnName("CreateId");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,55 +1,60 @@
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System.Data.Entity;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Repository.Models.Mapping;
|
||||
|
||||
|
||||
namespace OpenAuth.Repository.Models
|
||||
{
|
||||
public partial class OpenAuthDBContext : DbContext
|
||||
public partial class OpenAuthDBContext: DbContext
|
||||
{
|
||||
static OpenAuthDBContext()
|
||||
static OpenAuthDBContext()
|
||||
{
|
||||
Database.SetInitializer<OpenAuthDBContext>(null);
|
||||
Database.SetInitializer< OpenAuthDBContext>(null);
|
||||
}
|
||||
|
||||
public OpenAuthDBContext()
|
||||
: base("Name=OpenAuthDBContext")
|
||||
{
|
||||
}
|
||||
:base("Name=OpenAuthDBContext")
|
||||
{ }
|
||||
|
||||
public DbSet<Category> Categories { get; set; }
|
||||
public DbSet<DicDetail> DicDetails { get; set; }
|
||||
public DbSet<DicIndex> DicIndexes { get; set; }
|
||||
public DbSet<Module> Modules { get; set; }
|
||||
public DbSet<ModuleElement> ModuleElements { get; set; }
|
||||
public DbSet<Org> Orgs { get; set; }
|
||||
public DbSet<Param> Params { get; set; }
|
||||
public DbSet<Relevance> Relevances { get; set; }
|
||||
public DbSet<Resource> Resources { get; set; }
|
||||
public DbSet<Role> Roles { get; set; }
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<UserCfg> UserCfgs { get; set; }
|
||||
public DbSet<UserExt> UserExts { get; set; }
|
||||
public OpenAuthDBContext(string nameOrConnectionString)
|
||||
: base(nameOrConnectionString)
|
||||
{ }
|
||||
|
||||
public DbSet<Stock> Stocks { get; set; }
|
||||
public System.Data.Entity.DbSet<Category> Categories { get; set; }
|
||||
public System.Data.Entity.DbSet<DicDetail> DicDetails { get; set; }
|
||||
public System.Data.Entity.DbSet<DicIndex> DicIndices { get; set; }
|
||||
public System.Data.Entity.DbSet<GoodsApply> GoodsApplies { get; set; }
|
||||
public System.Data.Entity.DbSet<Module> Modules { get; set; }
|
||||
public System.Data.Entity.DbSet<ModuleElement> ModuleElements { get; set; }
|
||||
public System.Data.Entity.DbSet<Org> Orgs { get; set; }
|
||||
public System.Data.Entity.DbSet<Relevance> Relevances { get; set; }
|
||||
public System.Data.Entity.DbSet<Resource> Resources { get; set; }
|
||||
public System.Data.Entity.DbSet<Role> Roles { get; set; }
|
||||
public System.Data.Entity.DbSet<Stock> Stocks { get; set; }
|
||||
public System.Data.Entity.DbSet<User> Users { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Configurations.Add(new CategoryMap());
|
||||
modelBuilder.Configurations.Add(new DicDetailMap());
|
||||
modelBuilder.Configurations.Add(new DicIndexMap());
|
||||
modelBuilder.Configurations.Add(new GoodsApplyMap());
|
||||
modelBuilder.Configurations.Add(new ModuleMap());
|
||||
modelBuilder.Configurations.Add(new ModuleElementMap());
|
||||
modelBuilder.Configurations.Add(new OrgMap());
|
||||
modelBuilder.Configurations.Add(new ParamMap());
|
||||
modelBuilder.Configurations.Add(new RelevanceMap());
|
||||
modelBuilder.Configurations.Add(new ResourceMap());
|
||||
modelBuilder.Configurations.Add(new RoleMap());
|
||||
modelBuilder.Configurations.Add(new UserMap());
|
||||
modelBuilder.Configurations.Add(new UserCfgMap());
|
||||
modelBuilder.Configurations.Add(new UserExtMap());
|
||||
|
||||
modelBuilder.Configurations.Add(new StockMap());
|
||||
modelBuilder.Configurations.Add(new UserMap());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user