mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 02:44:44 +08:00
这是有史以来最艰难的一次提交,不生则死!
This commit is contained in:
61
OpenAuth.Repository/Mapping/CategoryMap.cs
Normal file
61
OpenAuth.Repository/Mapping/CategoryMap.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public partial class CategoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Category>
|
||||
{
|
||||
public CategoryMap()
|
||||
{
|
||||
// table
|
||||
ToTable("Category", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.CascadeId)
|
||||
.HasColumnName("CascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Code)
|
||||
.HasColumnName("Code")
|
||||
.HasMaxLength(255)
|
||||
.IsOptional();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.ParentId)
|
||||
.HasColumnName("ParentId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user