You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using SqlSugar;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace HKCardOUT.Logic
- {
- public class BaseEntity
- {
- [SugarColumn(IsPrimaryKey = true)]
- public Guid Id { get; set; }
- [SugarColumn(ColumnDataType = "DATETIME")]
- public DateTime CreateTime { get; set; }
- public void Create()
- {
- this.Id = Guid.NewGuid();
- this.CreateTime = DateTime.Now;
- }
- }
- }
|