2025-06-06 14:57:20 +08:00

60 lines
1.6 KiB
C#

using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YD_WeChatApplet.Api.SmartSportsEntitys
{
[Table("G_Article")]
public class G_Article
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
/// <summary>
///文章标题
/// </summary>
[Display(Name = "文章标题")]
[Comment("文章标题")]
[Column(TypeName = "nvarchar(1000)")]
public string Title { get; set; }
/// <summary>
///摘要
/// </summary>
[Display(Name = "摘要")]
[Comment("摘要")]
[Column(TypeName = "nvarchar(2000)")]
public string Abstract { get; set; }
/// <summary>
/// 封面图
/// </summary>
[Display(Name = "封面图")]
[Comment("封面图")]
[Column(TypeName = "nvarchar(1000)")]
public string CoverImage { get; set; }
/// <summary>
///文章地址
/// </summary>
[Display(Name = "文章地址")]
[Comment("文章地址")]
[Column(TypeName = "nvarchar(1000)")]
public string ArticleUrl { get; set; }
/// <summary>
///更新时间
/// </summary>
[Display(Name = "更新时间")]
[Comment("更新时间")]
[Column(TypeName = "datetime")]
public DateTime UpdateDate { get; set; }
}
}