mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-02 22:43:24 +08:00
全面修改Id为Guid类型,为2.0版做准备
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user