forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathAdvertisement.cs
More file actions
38 lines (32 loc) · 1.03 KB
/
Advertisement.cs
File metadata and controls
38 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using SqlSugar;
using System;
namespace Blog.Core.Model.Models
{
public class Advertisement : RootEntity
{
/// <summary>
/// 广告图片
/// </summary>
[SugarColumn(Length = 512, IsNullable = true, ColumnDataType = "nvarchar")]
public string ImgUrl { get; set; }
/// <summary>
/// 广告标题
/// </summary>
[SugarColumn(Length = 64, IsNullable = true, ColumnDataType = "nvarchar")]
public string Title { get; set; }
/// <summary>
/// 广告链接
/// </summary>
[SugarColumn(Length = 256, IsNullable = true, ColumnDataType = "nvarchar")]
public string Url { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(Length = int.MaxValue, IsNullable = true, ColumnDataType = "nvarchar")]
public string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime Createdate { get; set; } = DateTime.Now;
}
}