mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-07 18:04:45 +08:00
基于原有gooflow的改造
This commit is contained in:
@@ -16,24 +16,32 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 工作流流程实例表
|
||||
/// </summary>
|
||||
public partial class WFProcessInstance : Entity
|
||||
public partial class FlowInstance : Entity
|
||||
{
|
||||
public WFProcessInstance()
|
||||
public FlowInstance()
|
||||
{
|
||||
this.InstanceSchemeId= string.Empty;
|
||||
this.Code= string.Empty;
|
||||
this.CustomName= string.Empty;
|
||||
this.ActivityId= string.Empty;
|
||||
this.ActivityName= string.Empty;
|
||||
this.ProcessSchemeId= string.Empty;
|
||||
this.PreviousId= string.Empty;
|
||||
this.FrmType= 0;
|
||||
this.SchemeType= string.Empty;
|
||||
this.Disabled= 0;
|
||||
this.CreateDate= DateTime.Now;
|
||||
this.CreateUserId= string.Empty;
|
||||
this.CreateUserName= string.Empty;
|
||||
this.FlowLevel= 0;
|
||||
this.Description= string.Empty;
|
||||
this.IsFinish= 0;
|
||||
this.MakerList= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 流程实例模板Id
|
||||
/// </summary>
|
||||
public string InstanceSchemeId { get; set; }
|
||||
/// <summary>
|
||||
/// 实例编号
|
||||
/// </summary>
|
||||
@@ -54,10 +62,6 @@ namespace OpenAuth.Repository.Domain
|
||||
/// 当前节点名称
|
||||
/// </summary>
|
||||
public string ActivityName { get; set; }
|
||||
/// <summary>
|
||||
/// 流程实例模板Id
|
||||
/// </summary>
|
||||
public string ProcessSchemeId { get; set; }
|
||||
/// <summary>
|
||||
/// 前一个ID
|
||||
/// </summary>
|
||||
@@ -65,7 +69,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 表单类型
|
||||
/// </summary>
|
||||
public int? FrmType { get; set; }
|
||||
public int FrmType { get; set; }
|
||||
/// <summary>
|
||||
/// 流程类型
|
||||
/// </summary>
|
||||
@@ -73,11 +77,11 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 有效标志
|
||||
/// </summary>
|
||||
public int? EnabledMark { get; set; }
|
||||
public int Disabled { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public System.DateTime? CreateDate { get; set; }
|
||||
public System.DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
@@ -89,7 +93,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 等级
|
||||
/// </summary>
|
||||
public int? WfLevel { get; set; }
|
||||
public int FlowLevel { get; set; }
|
||||
/// <summary>
|
||||
/// 实例备注
|
||||
/// </summary>
|
||||
@@ -97,30 +101,11 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 是否完成
|
||||
/// </summary>
|
||||
public int? IsFinish { get; set; }
|
||||
public int IsFinish { get; set; }
|
||||
/// <summary>
|
||||
/// 执行人
|
||||
/// </summary>
|
||||
public string MakerList { get; set; }
|
||||
|
||||
|
||||
#region 扩展操作
|
||||
/// <summary>
|
||||
/// 新增调用
|
||||
/// </summary>
|
||||
public void Create()
|
||||
{
|
||||
this.CreateDate = DateTime.Now;
|
||||
}
|
||||
/// <summary>
|
||||
/// 编辑调用
|
||||
/// </summary>
|
||||
/// <param name="keyValue"></param>
|
||||
public void Modify(string keyValue)
|
||||
{
|
||||
this.Id = keyValue;
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -16,11 +16,11 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 工作流实例操作记录
|
||||
/// </summary>
|
||||
public partial class WFProcessOperationHistory : Entity
|
||||
public partial class FlowInstanceOperationHistory : Entity
|
||||
{
|
||||
public WFProcessOperationHistory()
|
||||
public FlowInstanceOperationHistory()
|
||||
{
|
||||
this.ProcessId= string.Empty;
|
||||
this.InstanceId= string.Empty;
|
||||
this.Content= string.Empty;
|
||||
this.CreateDate= DateTime.Now;
|
||||
this.CreateUserId= string.Empty;
|
||||
@@ -30,7 +30,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 实例进程Id
|
||||
/// </summary>
|
||||
public string ProcessId { get; set; }
|
||||
public string InstanceId { get; set; }
|
||||
/// <summary>
|
||||
/// 操作内容
|
||||
/// </summary>
|
||||
@@ -38,7 +38,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public System.DateTime? CreateDate { get; set; }
|
||||
public System.DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
@@ -14,15 +14,16 @@ using System.Text;
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流实例模板对应表
|
||||
/// 工作流实例模板对应表,防止创建实例后原模板被改
|
||||
/// </summary>
|
||||
public partial class WFProcessScheme : Entity
|
||||
public partial class FlowInstanceScheme : Entity
|
||||
{
|
||||
public WFProcessScheme()
|
||||
public FlowInstanceScheme()
|
||||
{
|
||||
this.SchemeContent= string.Empty;
|
||||
this.SchemeInfoId= string.Empty;
|
||||
this.SchemeId= string.Empty;
|
||||
this.SchemeVersion= string.Empty;
|
||||
this.ProcessType= 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -32,7 +33,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 流程模板ID
|
||||
/// </summary>
|
||||
public string SchemeInfoId { get; set; }
|
||||
public string SchemeId { get; set; }
|
||||
/// <summary>
|
||||
/// 流程内容版本
|
||||
/// </summary>
|
||||
@@ -40,26 +41,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 类型(0正常,3草稿)
|
||||
/// </summary>
|
||||
public int? ProcessType { get; set; }
|
||||
|
||||
|
||||
#region 扩展操作
|
||||
/// <summary>
|
||||
/// 新增调用
|
||||
/// </summary>
|
||||
public void Create()
|
||||
{
|
||||
this.Id = Guid.NewGuid().ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// 编辑调用
|
||||
/// </summary>
|
||||
/// <param name="keyValue"></param>
|
||||
public void Modify(string keyValue)
|
||||
{
|
||||
this.Id = keyValue;
|
||||
}
|
||||
#endregion
|
||||
public int ProcessType { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -16,24 +16,26 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 工作流实例流转历史记录
|
||||
/// </summary>
|
||||
public partial class WFProcessTransitionHistory : Entity
|
||||
public partial class FlowInstanceTransitionHistory : Entity
|
||||
{
|
||||
public WFProcessTransitionHistory()
|
||||
public FlowInstanceTransitionHistory()
|
||||
{
|
||||
this.ProcessId= string.Empty;
|
||||
this.InstanceId= string.Empty;
|
||||
this.FromNodeId= string.Empty;
|
||||
this.FromNodeName= string.Empty;
|
||||
this.ToNodeId= string.Empty;
|
||||
this.ToNodeName= string.Empty;
|
||||
this.TransitionSate= 0;
|
||||
this.IsFinish= 0;
|
||||
this.CreateDate= DateTime.Now;
|
||||
this.CreateUserId= string.Empty;
|
||||
this.CreateUserName= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实例进程Id
|
||||
/// 实例Id
|
||||
/// </summary>
|
||||
public string ProcessId { get; set; }
|
||||
public string InstanceId { get; set; }
|
||||
/// <summary>
|
||||
/// 开始节点Id
|
||||
/// </summary>
|
||||
@@ -61,15 +63,15 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 转化状态
|
||||
/// </summary>
|
||||
public int? TransitionSate { get; set; }
|
||||
public int TransitionSate { get; set; }
|
||||
/// <summary>
|
||||
/// 是否结束
|
||||
/// </summary>
|
||||
public int? IsFinish { get; set; }
|
||||
public int IsFinish { get; set; }
|
||||
/// <summary>
|
||||
/// 转化时间
|
||||
/// </summary>
|
||||
public System.DateTime? CreateDate { get; set; }
|
||||
public System.DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// 操作人Id
|
||||
/// </summary>
|
||||
@@ -16,15 +16,20 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 工作流模板信息表
|
||||
/// </summary>
|
||||
public partial class WFSchemeInfo : Entity
|
||||
public partial class FlowScheme : Entity
|
||||
{
|
||||
public WFSchemeInfo()
|
||||
public FlowScheme()
|
||||
{
|
||||
this.SchemeCode= string.Empty;
|
||||
this.SchemeName= string.Empty;
|
||||
this.SchemeType= string.Empty;
|
||||
this.SchemeVersion= string.Empty;
|
||||
this.SchemeCanUser= string.Empty;
|
||||
this.FrmType= 0;
|
||||
this.AuthorizeType= 0;
|
||||
this.SortCode= 0;
|
||||
this.DeleteMark= 0;
|
||||
this.Disabled= 0;
|
||||
this.Description= string.Empty;
|
||||
this.CreateDate= DateTime.Now;
|
||||
this.CreateUserId= string.Empty;
|
||||
@@ -57,23 +62,23 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 表单类型
|
||||
/// </summary>
|
||||
public int? FrmType { get; set; }
|
||||
public int FrmType { get; set; }
|
||||
/// <summary>
|
||||
/// 模板权限类型0所有人,1指定成员
|
||||
/// </summary>
|
||||
public int? AuthorizeType { get; set; }
|
||||
public int AuthorizeType { get; set; }
|
||||
/// <summary>
|
||||
/// 排序码
|
||||
/// </summary>
|
||||
public int? SortCode { get; set; }
|
||||
public int SortCode { get; set; }
|
||||
/// <summary>
|
||||
/// 删除标记
|
||||
/// </summary>
|
||||
public int? DeleteMark { get; set; }
|
||||
public int DeleteMark { get; set; }
|
||||
/// <summary>
|
||||
/// 有效
|
||||
/// </summary>
|
||||
public int? EnabledMark { get; set; }
|
||||
public int Disabled { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
@@ -81,7 +86,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public System.DateTime? CreateDate { get; set; }
|
||||
public System.DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
@@ -16,11 +16,11 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 工作流模板内容表
|
||||
/// </summary>
|
||||
public partial class WFSchemeContent : Entity
|
||||
public partial class FlowSchemeDetail : Entity
|
||||
{
|
||||
public WFSchemeContent()
|
||||
public FlowSchemeDetail()
|
||||
{
|
||||
this.SchemeInfoId= string.Empty;
|
||||
this.SchemeId= string.Empty;
|
||||
this.SchemeVersion= string.Empty;
|
||||
this.SchemeContent= string.Empty;
|
||||
this.CreateDate= DateTime.Now;
|
||||
@@ -31,7 +31,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 工作流模板信息主键Id
|
||||
/// </summary>
|
||||
public string SchemeInfoId { get; set; }
|
||||
public string SchemeId { get; set; }
|
||||
/// <summary>
|
||||
/// 流程内容版本
|
||||
/// </summary>
|
||||
@@ -43,7 +43,7 @@ namespace OpenAuth.Repository.Domain
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public System.DateTime? CreateDate { get; set; }
|
||||
public System.DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// 创建用户主键
|
||||
/// </summary>
|
||||
@@ -12,13 +12,13 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class WFProcessInstanceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessInstance>
|
||||
public partial class FlowInstanceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowInstance>
|
||||
{
|
||||
public WFProcessInstanceMap()
|
||||
public FlowInstanceMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WF_ProcessInstance", "dbo");
|
||||
ToTable("FlowInstance", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -28,6 +28,10 @@ namespace OpenAuth.Repository.Mapping
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.InstanceSchemeId)
|
||||
.HasColumnName("InstanceSchemeId")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.Code)
|
||||
.HasColumnName("Code")
|
||||
.HasMaxLength(200)
|
||||
@@ -47,27 +51,23 @@ namespace OpenAuth.Repository.Mapping
|
||||
.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();
|
||||
.IsRequired();
|
||||
Property(t => t.SchemeType)
|
||||
.HasColumnName("SchemeType")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.EnabledMark)
|
||||
.HasColumnName("EnabledMark")
|
||||
.IsOptional();
|
||||
Property(t => t.Disabled)
|
||||
.HasColumnName("Disabled")
|
||||
.IsRequired();
|
||||
Property(t => t.CreateDate)
|
||||
.HasColumnName("CreateDate")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.CreateUserId)
|
||||
.HasColumnName("CreateUserId")
|
||||
.HasMaxLength(50)
|
||||
@@ -76,16 +76,16 @@ namespace OpenAuth.Repository.Mapping
|
||||
.HasColumnName("CreateUserName")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.WfLevel)
|
||||
.HasColumnName("wfLevel")
|
||||
.IsOptional();
|
||||
Property(t => t.FlowLevel)
|
||||
.HasColumnName("FlowLevel")
|
||||
.IsRequired();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(200)
|
||||
.IsOptional();
|
||||
Property(t => t.IsFinish)
|
||||
.HasColumnName("isFinish")
|
||||
.IsOptional();
|
||||
.HasColumnName("IsFinish")
|
||||
.IsRequired();
|
||||
Property(t => t.MakerList)
|
||||
.HasColumnName("MakerList")
|
||||
.HasMaxLength(1000)
|
||||
@@ -12,13 +12,13 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class WFProcessOperationHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessOperationHistory>
|
||||
public partial class FlowInstanceOperationHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowInstanceOperationHistory>
|
||||
{
|
||||
public WFProcessOperationHistoryMap()
|
||||
public FlowInstanceOperationHistoryMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WF_ProcessOperationHistory", "dbo");
|
||||
ToTable("FlowInstanceOperationHistory", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -28,8 +28,8 @@ namespace OpenAuth.Repository.Mapping
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.ProcessId)
|
||||
.HasColumnName("ProcessId")
|
||||
Property(t => t.InstanceId)
|
||||
.HasColumnName("InstanceId")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.Content)
|
||||
@@ -38,7 +38,7 @@ namespace OpenAuth.Repository.Mapping
|
||||
.IsOptional();
|
||||
Property(t => t.CreateDate)
|
||||
.HasColumnName("CreateDate")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.CreateUserId)
|
||||
.HasColumnName("CreateUserId")
|
||||
.HasMaxLength(50)
|
||||
@@ -12,13 +12,13 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class WFProcessSchemeMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessScheme>
|
||||
public partial class FlowInstanceSchemeMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowInstanceScheme>
|
||||
{
|
||||
public WFProcessSchemeMap()
|
||||
public FlowInstanceSchemeMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WF_ProcessScheme", "dbo");
|
||||
ToTable("FlowInstanceScheme", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -31,8 +31,8 @@ namespace OpenAuth.Repository.Mapping
|
||||
Property(t => t.SchemeContent)
|
||||
.HasColumnName("SchemeContent")
|
||||
.IsOptional();
|
||||
Property(t => t.SchemeInfoId)
|
||||
.HasColumnName("SchemeInfoId")
|
||||
Property(t => t.SchemeId)
|
||||
.HasColumnName("SchemeId")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.SchemeVersion)
|
||||
@@ -41,7 +41,7 @@ namespace OpenAuth.Repository.Mapping
|
||||
.IsOptional();
|
||||
Property(t => t.ProcessType)
|
||||
.HasColumnName("ProcessType")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
@@ -12,13 +12,13 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class WFProcessTransitionHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessTransitionHistory>
|
||||
public partial class FlowInstanceTransitionHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowInstanceTransitionHistory>
|
||||
{
|
||||
public WFProcessTransitionHistoryMap()
|
||||
public FlowInstanceTransitionHistoryMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WF_ProcessTransitionHistory", "dbo");
|
||||
ToTable("FlowInstanceTransitionHistory", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -28,41 +28,41 @@ namespace OpenAuth.Repository.Mapping
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.ProcessId)
|
||||
.HasColumnName("ProcessId")
|
||||
Property(t => t.InstanceId)
|
||||
.HasColumnName("InstanceId")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.FromNodeId)
|
||||
.HasColumnName("fromNodeId")
|
||||
.HasColumnName("FromNodeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.FromNodeType)
|
||||
.HasColumnName("fromNodeType")
|
||||
.HasColumnName("FromNodeType")
|
||||
.IsOptional();
|
||||
Property(t => t.FromNodeName)
|
||||
.HasColumnName("fromNodeName")
|
||||
.HasColumnName("FromNodeName")
|
||||
.HasMaxLength(200)
|
||||
.IsOptional();
|
||||
Property(t => t.ToNodeId)
|
||||
.HasColumnName("toNodeId")
|
||||
.HasColumnName("ToNodeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.ToNodeType)
|
||||
.HasColumnName("toNodeType")
|
||||
.HasColumnName("ToNodeType")
|
||||
.IsOptional();
|
||||
Property(t => t.ToNodeName)
|
||||
.HasColumnName("toNodeName")
|
||||
.HasColumnName("ToNodeName")
|
||||
.HasMaxLength(200)
|
||||
.IsOptional();
|
||||
Property(t => t.TransitionSate)
|
||||
.HasColumnName("TransitionSate")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.IsFinish)
|
||||
.HasColumnName("isFinish")
|
||||
.IsOptional();
|
||||
.HasColumnName("IsFinish")
|
||||
.IsRequired();
|
||||
Property(t => t.CreateDate)
|
||||
.HasColumnName("CreateDate")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.CreateUserId)
|
||||
.HasColumnName("CreateUserId")
|
||||
.HasMaxLength(50)
|
||||
@@ -12,13 +12,13 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class WFSchemeContentMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFSchemeContent>
|
||||
public partial class FlowSchemeDetailMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowSchemeDetail>
|
||||
{
|
||||
public WFSchemeContentMap()
|
||||
public FlowSchemeDetailMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WF_SchemeContent", "dbo");
|
||||
ToTable("FlowSchemeDetail", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -28,8 +28,8 @@ namespace OpenAuth.Repository.Mapping
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.SchemeInfoId)
|
||||
.HasColumnName("SchemeInfoId")
|
||||
Property(t => t.SchemeId)
|
||||
.HasColumnName("SchemeId")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.SchemeVersion)
|
||||
@@ -41,7 +41,7 @@ namespace OpenAuth.Repository.Mapping
|
||||
.IsOptional();
|
||||
Property(t => t.CreateDate)
|
||||
.HasColumnName("CreateDate")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.CreateUserId)
|
||||
.HasColumnName("CreateUserId")
|
||||
.HasMaxLength(50)
|
||||
@@ -12,13 +12,13 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class WFSchemeInfoMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFSchemeInfo>
|
||||
public partial class FlowSchemeMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowScheme>
|
||||
{
|
||||
public WFSchemeInfoMap()
|
||||
public FlowSchemeMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WF_SchemeInfo", "dbo");
|
||||
ToTable("FlowScheme", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -49,26 +49,26 @@ namespace OpenAuth.Repository.Mapping
|
||||
.IsOptional();
|
||||
Property(t => t.FrmType)
|
||||
.HasColumnName("FrmType")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.AuthorizeType)
|
||||
.HasColumnName("AuthorizeType")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.SortCode)
|
||||
.HasColumnName("SortCode")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.DeleteMark)
|
||||
.HasColumnName("DeleteMark")
|
||||
.IsOptional();
|
||||
Property(t => t.EnabledMark)
|
||||
.HasColumnName("EnabledMark")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.Disabled)
|
||||
.HasColumnName("Disabled")
|
||||
.IsRequired();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(200)
|
||||
.IsOptional();
|
||||
Property(t => t.CreateDate)
|
||||
.HasColumnName("CreateDate")
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
Property(t => t.CreateUserId)
|
||||
.HasColumnName("CreateUserId")
|
||||
.HasMaxLength(50)
|
||||
@@ -60,6 +60,12 @@
|
||||
<Compile Include="Domain\Category.cs" />
|
||||
<Compile Include="Domain\CategoryType.cs" />
|
||||
<Compile Include="Core\Entity.cs" />
|
||||
<Compile Include="Domain\FlowInstance.cs" />
|
||||
<Compile Include="Domain\FlowInstanceOperationHistory.cs" />
|
||||
<Compile Include="Domain\FlowInstanceScheme.cs" />
|
||||
<Compile Include="Domain\FlowInstanceTransitionHistory.cs" />
|
||||
<Compile Include="Domain\FlowScheme.cs" />
|
||||
<Compile Include="Domain\FlowSchemeDetail.cs" />
|
||||
<Compile Include="Domain\Form.cs" />
|
||||
<Compile Include="Domain\Module.cs" />
|
||||
<Compile Include="Domain\ModuleElement.cs" />
|
||||
@@ -70,23 +76,17 @@
|
||||
<Compile Include="Domain\Stock.cs" />
|
||||
<Compile Include="Domain\User.cs" />
|
||||
<Compile Include="Domain\UserExt.cs" />
|
||||
<Compile Include="Domain\WFProcessInstance.cs" />
|
||||
<Compile Include="Domain\WFProcessOperationHistory.cs" />
|
||||
<Compile Include="Domain\WFProcessScheme.cs" />
|
||||
<Compile Include="Domain\WFProcessTransitionHistory.cs" />
|
||||
<Compile Include="Domain\WFSchemeContent.cs" />
|
||||
<Compile Include="Domain\WFSchemeInfo.cs" />
|
||||
<Compile Include="Interface\IRepository.cs" />
|
||||
<Compile Include="Interface\IUnitWork.cs" />
|
||||
<Compile Include="Mapping\ApplicationMap.cs" />
|
||||
<Compile Include="Mapping\CategoryTypeMap.cs" />
|
||||
<Compile Include="Mapping\FlowInstanceMap.cs" />
|
||||
<Compile Include="Mapping\FlowInstanceOperationHistoryMap.cs" />
|
||||
<Compile Include="Mapping\FlowInstanceSchemeMap.cs" />
|
||||
<Compile Include="Mapping\FlowInstanceTransitionHistoryMap.cs" />
|
||||
<Compile Include="Mapping\FlowSchemeDetailMap.cs" />
|
||||
<Compile Include="Mapping\FlowSchemeMap.cs" />
|
||||
<Compile Include="Mapping\FormMap.cs" />
|
||||
<Compile Include="Mapping\WFProcessInstanceMap.cs" />
|
||||
<Compile Include="Mapping\WFProcessOperationHistoryMap.cs" />
|
||||
<Compile Include="Mapping\WFProcessSchemeMap.cs" />
|
||||
<Compile Include="Mapping\WFProcessTransitionHistoryMap.cs" />
|
||||
<Compile Include="Mapping\WFSchemeContentMap.cs" />
|
||||
<Compile Include="Mapping\WFSchemeInfoMap.cs" />
|
||||
<Compile Include="UnitWork.cs" />
|
||||
<Compile Include="BaseRepository.cs" />
|
||||
<Compile Include="Mapping\CategoryMap.cs" />
|
||||
|
||||
@@ -41,12 +41,12 @@ namespace OpenAuth.Repository
|
||||
|
||||
public System.Data.Entity.DbSet<Form> Forms { get; set; }
|
||||
|
||||
public System.Data.Entity.DbSet<WFProcessInstance> WFProcessInstances { get; set; }
|
||||
public System.Data.Entity.DbSet<WFProcessOperationHistory> WFProcessOperationHistories { get; set; }
|
||||
public System.Data.Entity.DbSet<WFProcessScheme> WFProcessSchemes { get; set; }
|
||||
public System.Data.Entity.DbSet<WFProcessTransitionHistory> WFProcessTransitionHistories { get; set; }
|
||||
public System.Data.Entity.DbSet<WFSchemeContent> WFSchemeContents { get; set; }
|
||||
public System.Data.Entity.DbSet<WFSchemeInfo> WFSchemeInfos { get; set; }
|
||||
public System.Data.Entity.DbSet<FlowInstance> FlowInstances { get; set; }
|
||||
public System.Data.Entity.DbSet<FlowInstanceOperationHistory> FlowInstanceOperationHistories { get; set; }
|
||||
public System.Data.Entity.DbSet<FlowInstanceScheme> FlowInstanceSchemes { get; set; }
|
||||
public System.Data.Entity.DbSet<FlowInstanceTransitionHistory> FlowInstanceTransitionHistories { get; set; }
|
||||
public System.Data.Entity.DbSet<FlowScheme> FlowSchemes { get; set; }
|
||||
public System.Data.Entity.DbSet<FlowSchemeDetail> FlowSchemeDetails { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -62,12 +62,12 @@ namespace OpenAuth.Repository
|
||||
modelBuilder.Configurations.Add(new StockMap());
|
||||
modelBuilder.Configurations.Add(new UserMap());
|
||||
modelBuilder.Configurations.Add(new FormMap());
|
||||
modelBuilder.Configurations.Add(new WFProcessInstanceMap());
|
||||
modelBuilder.Configurations.Add(new WFProcessOperationHistoryMap());
|
||||
modelBuilder.Configurations.Add(new WFProcessSchemeMap());
|
||||
modelBuilder.Configurations.Add(new WFProcessTransitionHistoryMap());
|
||||
modelBuilder.Configurations.Add(new WFSchemeContentMap());
|
||||
modelBuilder.Configurations.Add(new WFSchemeInfoMap());
|
||||
modelBuilder.Configurations.Add(new FlowInstanceMap());
|
||||
modelBuilder.Configurations.Add(new FlowInstanceOperationHistoryMap());
|
||||
modelBuilder.Configurations.Add(new FlowInstanceSchemeMap());
|
||||
modelBuilder.Configurations.Add(new FlowInstanceTransitionHistoryMap());
|
||||
modelBuilder.Configurations.Add(new FlowSchemeMap());
|
||||
modelBuilder.Configurations.Add(new FlowSchemeDetailMap());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user