1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Yitter.IdGenerator;
- namespace ERP.Framework.WebApi
- {
- public abstract class BaseEntity
- {
- public BaseEntity()
- {
- this.Id = YitIdHelper.NextId();
- this.CreateTime = DateTime.Now;
- }
-
-
-
- public virtual long Id { get; set; }
-
-
-
- public virtual DateTime CreateTime { get; set; }
-
-
-
- public virtual string CreateBy { get; set; } = string.Empty;
-
-
-
- public virtual DateTime? UpdateTime { get; set; }
-
-
-
- public virtual string? UpdateBy { get; set; }
- }
- }
|