回滚合并

This commit is contained in:
chenchun
2022-04-24 16:01:09 +08:00
parent 31d2c3c98e
commit 33bd8d1cd1
7 changed files with 228 additions and 49 deletions

View File

@@ -1,48 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public abstract class BaseModelEntity
{
public BaseModelEntity()
{
this.IsDeleted = false;
this.CreateTime = DateTime.Now;
}
/// <summary>
/// 1
///</summary>
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 创建者
/// </summary>
[SugarColumn(ColumnName = "CreateUser")]
public long? CreateUser { get; set; }
/// <summary>
/// 修改者
///</summary>
[SugarColumn(ColumnName = "ModifyUser")]
public long? ModifyUser { get; set; }
/// <summary>
/// 创建时间
///</summary>
[SugarColumn(ColumnName = "CreateTime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 修改时间
///</summary>
[SugarColumn(ColumnName = "ModifyTime")]
public DateTime? ModifyTime { get; set; }
/// <summary>
/// 是否删除
///</summary>
[SugarColumn(ColumnName = "IsDeleted")]
public bool? IsDeleted { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public interface IBaseModelEntity
{
public long Id { get; set; }
public long? CreateUser { get; set; }
public long? ModifyUser { get; set; }
public DateTime? CreateTime { get; set; }
public DateTime? ModifyTime { get; set; }
public bool? IsDeleted { get; set; }
}
}