69 lines
2.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.ComponentModel.DataAnnotations.Schema;
using SqlSugar;
namespace Learun.Application.AppMagager
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创 建:超级管理员
/// 日 期2018-07-02 15:31
/// 描 述App首页图片管理
/// </summary>
[SugarTable(TableName = "LR_APP_DTIMG")]
public class DTImgEntity
{
#region
/// <summary>
/// 主键
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ID", IsPrimaryKey = true)]
public string F_Id { get; set; }
/// <summary>
/// 图片说明
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_DES")]
public string F_Des { get; set; }
/// <summary>
/// 图片文件名
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_FILENAME")]
public string F_FileName { get; set; }
/// <summary>
/// 有效标志0否1是
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ENABLEDMARK")]
public int? F_EnabledMark { get; set; }
/// <summary>
/// 排序码
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_SORTCODE")]
public int? F_SortCode { get; set; }
#endregion
#region
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.F_Id = Guid.NewGuid().ToString();
this.F_EnabledMark = 1;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.F_Id = keyValue;
}
#endregion
}
}