这是有史以来最艰难的一次提交,不生则死!

This commit is contained in:
yubao
2017-11-28 23:54:49 +08:00
parent 9c37623d7f
commit 6a3fa6fd3d
114 changed files with 779 additions and 2373 deletions

View File

@@ -0,0 +1,65 @@
//------------------------------------------------------------------------------
// <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 ApplicationMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Application>
{
public ApplicationMap()
{
// table
ToTable("Application", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.Name)
.HasColumnName("Name")
.HasMaxLength(255)
.IsRequired();
Property(t => t.AppId)
.HasColumnName("AppId")
.HasMaxLength(255)
.IsOptional();
Property(t => t.AppKey)
.HasColumnName("AppKey")
.HasMaxLength(255)
.IsOptional();
Property(t => t.Description)
.HasColumnName("Description")
.HasMaxLength(255)
.IsOptional();
Property(t => t.Icon)
.HasColumnName("Icon")
.HasMaxLength(255)
.IsOptional();
Property(t => t.Disable)
.HasColumnName("Disable")
.IsRequired();
Property(t => t.CreateTime)
.HasColumnName("CreateTime")
.IsOptional();
Property(t => t.CreateUser)
.HasColumnName("CreateUser")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View 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
}
}
}

View File

@@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// <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 CategoryTypeMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.CategoryType>
{
public CategoryTypeMap()
{
// table
ToTable("CategoryType", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.Name)
.HasColumnName("Name")
.HasMaxLength(255)
.IsRequired();
Property(t => t.Code)
.HasColumnName("Code")
.HasMaxLength(255)
.IsOptional();
Property(t => t.CreateTime)
.HasColumnName("CreateTime")
.IsOptional();
Property(t => t.CreateUser)
.HasColumnName("CreateUser")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,74 @@
//------------------------------------------------------------------------------
// <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 ModuleElementMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.ModuleElement>
{
public ModuleElementMap()
{
// table
ToTable("ModuleElement", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.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")
.HasMaxLength(50)
.IsRequired();
// Relationships
}
}
}

View File

@@ -0,0 +1,79 @@
//------------------------------------------------------------------------------
// <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 ModuleMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Module>
{
public ModuleMap()
{
// table
ToTable("Module", "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.Url)
.HasColumnName("Url")
.HasMaxLength(255)
.IsRequired();
Property(t => t.HotKey)
.HasColumnName("HotKey")
.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.ParentName)
.HasColumnName("ParentName")
.HasMaxLength(255)
.IsRequired();
Property(t => t.Vector)
.HasColumnName("Vector")
.HasMaxLength(255)
.IsRequired();
Property(t => t.SortNo)
.HasColumnName("SortNo")
.IsRequired();
Property(t => t.ParentId)
.HasColumnName("ParentId")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,88 @@
//------------------------------------------------------------------------------
// <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 OrgMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Org>
{
public OrgMap()
{
// table
ToTable("Org", "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.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")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View 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 RelevanceMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Relevance>
{
public RelevanceMap()
{
// table
ToTable("Relevance", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.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")
.HasMaxLength(50)
.IsOptional();
Property(t => t.FirstId)
.HasColumnName("FirstId")
.HasMaxLength(50)
.IsRequired();
Property(t => t.SecondId)
.HasColumnName("SecondId")
.HasMaxLength(50)
.IsRequired();
// Relationships
}
}
}

View File

@@ -0,0 +1,69 @@
//------------------------------------------------------------------------------
// <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 ResourceMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Resource>
{
public ResourceMap()
{
// table
ToTable("Resource", "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.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.Description)
.HasColumnName("Description")
.HasMaxLength(500)
.IsRequired();
Property(t => t.ParentId)
.HasColumnName("ParentId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CategoryId)
.HasColumnName("CategoryId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.AppId)
.HasColumnName("AppId")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,52 @@
//------------------------------------------------------------------------------
// <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 RoleMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Role>
{
public RoleMap()
{
// table
ToTable("Role", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.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(50)
.IsRequired();
// Relationships
}
}
}

View File

@@ -0,0 +1,64 @@
//------------------------------------------------------------------------------
// <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 StockMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Stock>
{
public StockMap()
{
// table
ToTable("Stock", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.Name)
.HasColumnName("Name")
.HasMaxLength(500)
.IsRequired();
Property(t => t.Number)
.HasColumnName("Number")
.IsRequired();
Property(t => t.Price)
.HasColumnName("Price")
.HasPrecision(10, 1)
.IsRequired();
Property(t => t.Status)
.HasColumnName("Status")
.IsRequired();
Property(t => t.Viewable)
.HasColumnName("Viewable")
.HasMaxLength(50)
.IsRequired();
Property(t => t.User)
.HasColumnName("User")
.HasMaxLength(50)
.IsRequired();
Property(t => t.Time)
.HasColumnName("Time")
.IsRequired();
Property(t => t.OrgId)
.HasColumnName("OrgId")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,67 @@
//------------------------------------------------------------------------------
// <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 UserMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.User>
{
public UserMap()
{
// table
ToTable("User", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.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")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,101 @@
//------------------------------------------------------------------------------
// <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 WFFrmMainMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFFrmMain>
{
public WFFrmMainMap()
{
// table
ToTable("WF_FrmMain", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.FrmCode)
.HasColumnName("FrmCode")
.HasMaxLength(50)
.IsOptional();
Property(t => t.FrmName)
.HasColumnName("FrmName")
.HasMaxLength(200)
.IsOptional();
Property(t => t.FrmType)
.HasColumnName("FrmType")
.HasMaxLength(50)
.IsOptional();
Property(t => t.FrmTable)
.HasColumnName("FrmTable")
.HasMaxLength(50)
.IsOptional();
Property(t => t.FrmTableId)
.HasColumnName("FrmTableId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.IsSystemTable)
.HasColumnName("isSystemTable")
.IsOptional();
Property(t => t.FrmContent)
.HasColumnName("FrmContent")
.HasMaxLength(16)
.IsOptional();
Property(t => t.SortCode)
.HasColumnName("SortCode")
.IsOptional();
Property(t => t.DeleteMark)
.HasColumnName("DeleteMark")
.IsOptional();
Property(t => t.FrmDbId)
.HasColumnName("FrmDbId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.EnabledMark)
.HasColumnName("EnabledMark")
.IsOptional();
Property(t => t.Description)
.HasColumnName("Description")
.HasMaxLength(200)
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
.IsOptional();
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ModifyDate)
.HasColumnName("ModifyDate")
.IsOptional();
Property(t => t.ModifyUserId)
.HasColumnName("ModifyUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ModifyUserName)
.HasColumnName("ModifyUserName")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,97 @@
//------------------------------------------------------------------------------
// <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 WFProcessInstanceMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessInstance>
{
public WFProcessInstanceMap()
{
// table
ToTable("WF_ProcessInstance", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.Code)
.HasColumnName("Code")
.HasMaxLength(200)
.IsOptional();
Property(t => t.CustomName)
.HasColumnName("CustomName")
.HasMaxLength(200)
.IsOptional();
Property(t => t.ActivityId)
.HasColumnName("ActivityId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ActivityType)
.HasColumnName("ActivityType")
.IsOptional();
Property(t => t.ActivityName)
.HasColumnName("ActivityName")
.HasMaxLength(200)
.IsOptional();
Property(t => t.ProcessSchemeId)
.HasColumnName("ProcessSchemeId")
.HasMaxLength(50)
.IsRequired();
Property(t => t.PreviousId)
.HasColumnName("PreviousId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.FrmType)
.HasColumnName("FrmType")
.IsOptional();
Property(t => t.SchemeType)
.HasColumnName("SchemeType")
.HasMaxLength(50)
.IsOptional();
Property(t => t.EnabledMark)
.HasColumnName("EnabledMark")
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
.IsOptional();
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
Property(t => t.WfLevel)
.HasColumnName("wfLevel")
.IsOptional();
Property(t => t.Description)
.HasColumnName("Description")
.HasMaxLength(200)
.IsOptional();
Property(t => t.IsFinish)
.HasColumnName("isFinish")
.IsOptional();
Property(t => t.MakerList)
.HasColumnName("MakerList")
.HasMaxLength(1000)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,54 @@
//------------------------------------------------------------------------------
// <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 WFProcessOperationHistoryMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessOperationHistory>
{
public WFProcessOperationHistoryMap()
{
// table
ToTable("WF_ProcessOperationHistory", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.ProcessId)
.HasColumnName("ProcessId")
.HasMaxLength(50)
.IsRequired();
Property(t => t.Content)
.HasColumnName("Content")
.HasMaxLength(200)
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
.IsOptional();
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// <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 WFProcessSchemeMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessScheme>
{
public WFProcessSchemeMap()
{
// table
ToTable("WF_ProcessScheme", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.SchemeContent)
.HasColumnName("SchemeContent")
.IsOptional();
Property(t => t.SchemeInfoId)
.HasColumnName("SchemeInfoId")
.HasMaxLength(50)
.IsRequired();
Property(t => t.SchemeVersion)
.HasColumnName("SchemeVersion")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ProcessType)
.HasColumnName("ProcessType")
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,78 @@
//------------------------------------------------------------------------------
// <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 WFProcessTransitionHistoryMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessTransitionHistory>
{
public WFProcessTransitionHistoryMap()
{
// table
ToTable("WF_ProcessTransitionHistory", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.ProcessId)
.HasColumnName("ProcessId")
.HasMaxLength(50)
.IsRequired();
Property(t => t.FromNodeId)
.HasColumnName("fromNodeId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.FromNodeType)
.HasColumnName("fromNodeType")
.IsOptional();
Property(t => t.FromNodeName)
.HasColumnName("fromNodeName")
.HasMaxLength(200)
.IsOptional();
Property(t => t.ToNodeId)
.HasColumnName("toNodeId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ToNodeType)
.HasColumnName("toNodeType")
.IsOptional();
Property(t => t.ToNodeName)
.HasColumnName("toNodeName")
.HasMaxLength(200)
.IsOptional();
Property(t => t.TransitionSate)
.HasColumnName("TransitionSate")
.IsOptional();
Property(t => t.IsFinish)
.HasColumnName("isFinish")
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
.IsOptional();
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,57 @@
//------------------------------------------------------------------------------
// <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 WFSchemeContentMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFSchemeContent>
{
public WFSchemeContentMap()
{
// table
ToTable("WF_SchemeContent", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.SchemeInfoId)
.HasColumnName("SchemeInfoId")
.HasMaxLength(50)
.IsRequired();
Property(t => t.SchemeVersion)
.HasColumnName("SchemeVersion")
.HasMaxLength(50)
.IsOptional();
Property(t => t.SchemeContent)
.HasColumnName("SchemeContent")
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
.IsOptional();
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}

View File

@@ -0,0 +1,95 @@
//------------------------------------------------------------------------------
// <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 WFSchemeInfoMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFSchemeInfo>
{
public WFSchemeInfoMap()
{
// table
ToTable("WF_SchemeInfo", "dbo");
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
Property(t => t.SchemeCode)
.HasColumnName("SchemeCode")
.HasMaxLength(50)
.IsOptional();
Property(t => t.SchemeName)
.HasColumnName("SchemeName")
.HasMaxLength(200)
.IsOptional();
Property(t => t.SchemeType)
.HasColumnName("SchemeType")
.HasMaxLength(50)
.IsOptional();
Property(t => t.SchemeVersion)
.HasColumnName("SchemeVersion")
.HasMaxLength(50)
.IsOptional();
Property(t => t.SchemeCanUser)
.HasColumnName("SchemeCanUser")
.IsOptional();
Property(t => t.FrmType)
.HasColumnName("FrmType")
.IsOptional();
Property(t => t.AuthorizeType)
.HasColumnName("AuthorizeType")
.IsOptional();
Property(t => t.SortCode)
.HasColumnName("SortCode")
.IsOptional();
Property(t => t.DeleteMark)
.HasColumnName("DeleteMark")
.IsOptional();
Property(t => t.EnabledMark)
.HasColumnName("EnabledMark")
.IsOptional();
Property(t => t.Description)
.HasColumnName("Description")
.HasMaxLength(200)
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
.IsOptional();
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ModifyDate)
.HasColumnName("ModifyDate")
.IsOptional();
Property(t => t.ModifyUserId)
.HasColumnName("ModifyUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.ModifyUserName)
.HasColumnName("ModifyUserName")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}