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