Files
Yi.Admin/Yi.Framework.Net6/Yi.Framework.Model/LogEntity.cs

19 lines
511 B
C#
Raw Normal View History

2022-04-23 00:57:14 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Yi.Framework.Model.Models
{
/// <summary>
/// 日志表
///</summary>
[SplitTable(SplitType.Year)]
[SugarTable("SplitLog_{year}{month}{day}")]
2022-04-24 16:44:16 +08:00
public partial class LogEntity
2022-04-23 00:57:14 +08:00
{
[SplitField] //分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
public DateTime? LogCreateTime { get; set; }
2022-04-24 16:44:16 +08:00
2022-04-23 00:57:14 +08:00
}
}