mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
增加流程状态转换列表
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.ComponentModel.DataAnnotations.Schema;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public partial class ApplyTransitionHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ApplyTransitionHistory>
|
||||
{
|
||||
public ApplyTransitionHistoryMap()
|
||||
{
|
||||
// table
|
||||
ToTable("ApplyTransitionHistory", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.ApplyId)
|
||||
.HasColumnName("ApplyId")
|
||||
.IsRequired();
|
||||
Property(t => t.UserId)
|
||||
.HasColumnName("UserId")
|
||||
.IsOptional();
|
||||
Property(t => t.AllowedToUserNames)
|
||||
.HasColumnName("AllowedToUserNames")
|
||||
.IsRequired();
|
||||
Property(t => t.TransitionTime)
|
||||
.HasColumnName("TransitionTime")
|
||||
.IsOptional();
|
||||
Property(t => t.Order)
|
||||
.HasColumnName("Order")
|
||||
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
|
||||
.IsRequired();
|
||||
Property(t => t.InitialState)
|
||||
.HasColumnName("InitialState")
|
||||
.HasMaxLength(1024)
|
||||
.IsRequired();
|
||||
Property(t => t.DestinationState)
|
||||
.HasColumnName("DestinationState")
|
||||
.HasMaxLength(1024)
|
||||
.IsRequired();
|
||||
Property(t => t.Command)
|
||||
.HasColumnName("Command")
|
||||
.HasMaxLength(1024)
|
||||
.IsRequired();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
39
OpenAuth.Repository/Models/Mapping/WorkflowInboxMap.cs
Normal file
39
OpenAuth.Repository/Models/Mapping/WorkflowInboxMap.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 partial class WorkflowInboxMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<WorkflowInbox>
|
||||
{
|
||||
public WorkflowInboxMap()
|
||||
{
|
||||
// table
|
||||
ToTable("WorkflowInbox", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.IsRequired();
|
||||
Property(t => t.ProcessId)
|
||||
.HasColumnName("ProcessId")
|
||||
.IsRequired();
|
||||
Property(t => t.IdentityId)
|
||||
.HasColumnName("IdentityId")
|
||||
.IsRequired();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
@@ -11,7 +11,6 @@ using System.Data.Entity;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Repository.Models.Mapping;
|
||||
|
||||
|
||||
namespace OpenAuth.Repository.Models
|
||||
{
|
||||
public partial class OpenAuthDBContext: DbContext
|
||||
@@ -40,6 +39,9 @@ namespace OpenAuth.Repository.Models
|
||||
public System.Data.Entity.DbSet<Role> Roles { get; set; }
|
||||
public System.Data.Entity.DbSet<Stock> Stocks { get; set; }
|
||||
public System.Data.Entity.DbSet<User> Users { get; set; }
|
||||
public System.Data.Entity.DbSet<WorkflowInbox> WorkflowInboxes { get; set; }
|
||||
|
||||
public DbSet<ApplyTransitionHistory> ApplyTransitionHistories { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -55,6 +57,9 @@ namespace OpenAuth.Repository.Models
|
||||
modelBuilder.Configurations.Add(new RoleMap());
|
||||
modelBuilder.Configurations.Add(new StockMap());
|
||||
modelBuilder.Configurations.Add(new UserMap());
|
||||
modelBuilder.Configurations.Add(new WorkflowInboxMap());
|
||||
modelBuilder.Configurations.Add(new ApplyTransitionHistoryMap());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@@ -55,7 +55,9 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Models\Mapping\ApplyTransitionHistoryMap.cs" />
|
||||
<Compile Include="Models\Mapping\GoodsApplyMap.cs" />
|
||||
<Compile Include="Models\Mapping\WorkflowInboxMap.cs" />
|
||||
<Compile Include="UnitWork.cs" />
|
||||
<Compile Include="BaseRepository.cs" />
|
||||
<Compile Include="Models\Mapping\CategoryMap.cs" />
|
||||
|
Reference in New Issue
Block a user