public static void Merge(this T_E_Log iEntity, Log iObj) { iEntity.Date = iObj.Date; iEntity.LogId = iObj.LogId; iEntity.Message = iObj.Message; iEntity.Title = iObj.Title; iEntity.Type = (int)iObj.Type; }
public long AddLog(EquinoxeExtend.Shared.Object.Log.Log iLog) { if (iLog == null) { throw new NullReferenceException(); } var logEntity = new T_E_Log(); logEntity.Merge(iLog); return(DBLogDataService.AddLog(logEntity)); }
public static Log Convert(this T_E_Log iEntity) { if (iEntity == null) { return(null); } return(new Log { Date = iEntity.Date, LogId = iEntity.LogId, Message = iEntity.Message, Title = iEntity.Title, Type = (TypeLogEnum)iEntity.Type, }); }