using System;
using Lottomat.Application.Code;
using Lottomat.Util;
using Lottomat.Utils.Date;
namespace Lottomat.Application.Entity.LotteryNumberManage
{
///
/// 版 本
/// Copyright (c) 2016-2017
/// 创 建:超级管理员
/// 日 期:2018-05-22 09:34
/// 描 述:彩市新闻
///
public class LotteryNewsEntity : BaseEntity
{
#region 实体成员
///
/// PK
///
///
public int? PK { get; set; }
///
/// 主键
///
///
public string ID { get; set; }
///
/// 类型
///
///
public int? TypeId { get; set; }
///
/// 类型名称
///
///
public string TypeName { get; set; }
///
/// 标题
///
///
public string Title { get; set; }
///
/// 添加时间
///
///
public DateTime? AddTime { get; set; }
///
/// 作者
///
///
public string Author { get; set; }
///
/// 内容
///
///
public string Content { get; set; }
///
/// 资源地址
///
///
public string SourceUrl { get; set; }
///
/// 是否删除
///
///
public bool? IsDelete { get; set; }
#endregion
#region 扩展操作
///
/// 新增调用
///
public override void Create()
{
this.ID = CommonHelper.GetGuid().ToString();
this.IsDelete = false;
this.AddTime = DateTimeHelper.Now;
}
///
/// 编辑调用
///
///
public override void Modify(string keyValue)
{
this.ID = keyValue;
}
#endregion
}
}