mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 02:14:44 +08:00
完成流程列表
This commit is contained in:
@@ -12,13 +12,13 @@ using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public partial class GoodsApplyMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<GoodsApply>
|
||||
public partial class CommonApplyMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<CommonApply>
|
||||
{
|
||||
public GoodsApplyMap()
|
||||
public CommonApplyMap()
|
||||
{
|
||||
// table
|
||||
ToTable("GoodsApply", "dbo");
|
||||
ToTable("CommonApply", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
@@ -31,8 +31,8 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("Sort")
|
||||
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
|
||||
.IsRequired();
|
||||
Property(t => t.Number)
|
||||
.HasColumnName("Number")
|
||||
Property(t => t.ApplyTime)
|
||||
.HasColumnName("ApplyTime")
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
@@ -1,39 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ namespace OpenAuth.Repository.Models
|
||||
public System.Data.Entity.DbSet<Category> Categories { get; set; }
|
||||
public System.Data.Entity.DbSet<DicDetail> DicDetails { get; set; }
|
||||
public System.Data.Entity.DbSet<DicIndex> DicIndices { get; set; }
|
||||
public System.Data.Entity.DbSet<GoodsApply> GoodsApplies { get; set; }
|
||||
public System.Data.Entity.DbSet<CommonApply> GoodsApplies { get; set; }
|
||||
public System.Data.Entity.DbSet<Module> Modules { get; set; }
|
||||
public System.Data.Entity.DbSet<ModuleElement> ModuleElements { get; set; }
|
||||
public System.Data.Entity.DbSet<Org> Orgs { get; set; }
|
||||
@@ -39,7 +39,6 @@ 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; }
|
||||
|
||||
@@ -48,7 +47,7 @@ namespace OpenAuth.Repository.Models
|
||||
modelBuilder.Configurations.Add(new CategoryMap());
|
||||
modelBuilder.Configurations.Add(new DicDetailMap());
|
||||
modelBuilder.Configurations.Add(new DicIndexMap());
|
||||
modelBuilder.Configurations.Add(new GoodsApplyMap());
|
||||
modelBuilder.Configurations.Add(new CommonApplyMap());
|
||||
modelBuilder.Configurations.Add(new ModuleMap());
|
||||
modelBuilder.Configurations.Add(new ModuleElementMap());
|
||||
modelBuilder.Configurations.Add(new OrgMap());
|
||||
@@ -57,7 +56,6 @@ 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -56,8 +56,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Models\Mapping\ApplyTransitionHistoryMap.cs" />
|
||||
<Compile Include="Models\Mapping\GoodsApplyMap.cs" />
|
||||
<Compile Include="Models\Mapping\WorkflowInboxMap.cs" />
|
||||
<Compile Include="Models\Mapping\CommonApplyMap.cs" />
|
||||
<Compile Include="UnitWork.cs" />
|
||||
<Compile Include="BaseRepository.cs" />
|
||||
<Compile Include="Models\Mapping\CategoryMap.cs" />
|
||||
|
||||
Reference in New Issue
Block a user