视图实体修改

This commit is contained in:
Jimmy 2021-01-11 18:43:05 +08:00
parent d1fd0125fc
commit 180d38d571
5 changed files with 14 additions and 10 deletions

View File

@ -49,6 +49,10 @@ namespace MineTec.ProManager.GalleryInformation.Dto
///是否删除0 否, 1 是
/// </summary>
public int IsDelete { get; set; }
/// <summary>
///包含文件数量
/// </summary>
public int FilesCount { get; set; }
public DateTime CreationTime { get; set; }
}

View File

@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations;
namespace MineTec.ProManager.Entitys.Graphic.GalleryInformation
{
[System.ComponentModel.DataAnnotations.Schema.Table("ViewGalleryInformationList")]
[System.ComponentModel.DataAnnotations.Schema.Table("ViewGalleryInformation")]
public class ViewGalleryInformation : Entity<Guid>, IHasCreationTime
{
/// <summary>

View File

@ -28,14 +28,14 @@ namespace MineTec.ProManager.EntityFrameworkCore
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)
{
modelBuilder.Ignore<Entitys.Graphic.GalleryInformation.ViewGalleryInformation>();
base.OnModelCreating(modelBuilder);
}
//protected override void OnModelCreating(ModelBuilder modelBuilder)
//{
// modelBuilder.Ignore<Entitys.Graphic.GalleryInformation.ViewGalleryInformation>();
// base.OnModelCreating(modelBuilder);
//}
}
}

View File

@ -5,7 +5,7 @@
</sql>
<sql ver="2">
--创建图库列表的视图
CREATE VIEW ViewGalleryInformationList
CREATE VIEW ViewGalleryInformation
AS
SELECT a.Id,
a.CreateTime,

View File

@ -85,8 +85,8 @@
{ type: "numbers", title: '序号', width: 50 },
{ field: 'id', hide: true, width: 300, title: 'ID' },
{ field: 'galleryNum', width: 200, title: '图库编号', sort: true, align: "center" },
{ field: 'remark', width: 350, title: '备注信息', align: "left" },
{ field: 'remark', width: 150, title: '图纸数量', align: "center" },
{ field: 'remark', width: 300, title: '备注信息', align: "left" },
{ field: 'filesCount', width: 150, title: '图纸数量', align: "center" },
{ field: 'isDelete', width: 150, title: '状态', align: "center", templet: '#GalleryInformationList_isDelete' },
{ title: '操作', width: 200, toolbar: '#currentTableBar', align: "center" }
]],