视图实体修改
This commit is contained in:
parent
d1fd0125fc
commit
180d38d571
@ -49,6 +49,10 @@ namespace MineTec.ProManager.GalleryInformation.Dto
|
|||||||
///是否删除:0 否, 1 是
|
///是否删除:0 否, 1 是
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int IsDelete { get; set; }
|
public int IsDelete { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///包含文件数量
|
||||||
|
/// </summary>
|
||||||
|
public int FilesCount { get; set; }
|
||||||
|
|
||||||
public DateTime CreationTime { get; set; }
|
public DateTime CreationTime { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations;
|
|||||||
|
|
||||||
namespace MineTec.ProManager.Entitys.Graphic.GalleryInformation
|
namespace MineTec.ProManager.Entitys.Graphic.GalleryInformation
|
||||||
{
|
{
|
||||||
[System.ComponentModel.DataAnnotations.Schema.Table("ViewGalleryInformationList")]
|
[System.ComponentModel.DataAnnotations.Schema.Table("ViewGalleryInformation")]
|
||||||
public class ViewGalleryInformation : Entity<Guid>, IHasCreationTime
|
public class ViewGalleryInformation : Entity<Guid>, IHasCreationTime
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -28,14 +28,14 @@ namespace MineTec.ProManager.EntityFrameworkCore
|
|||||||
|
|
||||||
public DbSet<Entitys.Graphic.GalleryFiles.GalleryFiles> GalleryFiles { get; set; }
|
public DbSet<Entitys.Graphic.GalleryFiles.GalleryFiles> GalleryFiles { get; set; }
|
||||||
|
|
||||||
public DbSet<Entitys.Graphic.GalleryInformation.ViewGalleryInformation> ViewGalleryInformationList { get; set; }
|
public DbSet<Entitys.Graphic.GalleryInformation.ViewGalleryInformation> ViewGalleryInformation { get; set; }
|
||||||
|
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
//protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
{
|
//{
|
||||||
modelBuilder.Ignore<Entitys.Graphic.GalleryInformation.ViewGalleryInformation>();
|
// modelBuilder.Ignore<Entitys.Graphic.GalleryInformation.ViewGalleryInformation>();
|
||||||
base.OnModelCreating(modelBuilder);
|
// base.OnModelCreating(modelBuilder);
|
||||||
}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</sql>
|
</sql>
|
||||||
<sql ver="2">
|
<sql ver="2">
|
||||||
--创建图库列表的视图
|
--创建图库列表的视图
|
||||||
CREATE VIEW ViewGalleryInformationList
|
CREATE VIEW ViewGalleryInformation
|
||||||
AS
|
AS
|
||||||
SELECT a.Id,
|
SELECT a.Id,
|
||||||
a.CreateTime,
|
a.CreateTime,
|
||||||
|
@ -85,8 +85,8 @@
|
|||||||
{ type: "numbers", title: '序号', width: 50 },
|
{ type: "numbers", title: '序号', width: 50 },
|
||||||
{ field: 'id', hide: true, width: 300, title: 'ID' },
|
{ field: 'id', hide: true, width: 300, title: 'ID' },
|
||||||
{ field: 'galleryNum', width: 200, title: '图库编号', sort: true, align: "center" },
|
{ field: 'galleryNum', width: 200, title: '图库编号', sort: true, align: "center" },
|
||||||
{ field: 'remark', width: 350, title: '备注信息', align: "left" },
|
{ field: 'remark', width: 300, title: '备注信息', align: "left" },
|
||||||
{ field: 'remark', width: 150, title: '图纸数量', align: "center" },
|
{ field: 'filesCount', width: 150, title: '图纸数量', align: "center" },
|
||||||
{ field: 'isDelete', width: 150, title: '状态', align: "center", templet: '#GalleryInformationList_isDelete' },
|
{ field: 'isDelete', width: 150, title: '状态', align: "center", templet: '#GalleryInformationList_isDelete' },
|
||||||
{ title: '操作', width: 200, toolbar: '#currentTableBar', align: "center" }
|
{ title: '操作', width: 200, toolbar: '#currentTableBar', align: "center" }
|
||||||
]],
|
]],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user