public static SqlServerWithOperatorBaseDO <T> Modity <T>(this SqlServerWithOperatorBaseDO <T> @this, string userId, string userName, DateTime dateTime) { @this.ModityBy = userId; @this.ModityByName = userName; @this.ModityDate = dateTime; @this.Version++; return(@this); }
public static SqlServerWithOperatorBaseDO <T> Create <T>(this SqlServerWithOperatorBaseDO <T> @this, string userId, string userName, DateTime dateTime) { @this.CreateBy = userId; @this.CreateByName = userName; @this.CreateDate = dateTime; @this.Modity(userId, userName, dateTime); return(@this); }
public static SqlServerWithOperatorBaseDO <T> Create <T>(this SqlServerWithOperatorBaseDO <T> @this, string userId, string userName) { @this.Create(userId, userName, System.DateTime.Now); return(@this); }