增加流程状态转换列表

This commit is contained in:
yubaolee
2016-09-07 11:11:34 +08:00
parent 96e8eec1e7
commit 0c82f7b8c3
20 changed files with 499 additions and 38 deletions

View File

@@ -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());
}
}
}