public static OperationLogEntity ToDataModel(this OperationLog log) { var retVal = new OperationLogEntity(); retVal.InjectFrom(log); retVal.OperationType = log.OperationType.ToString(); return(retVal); }
public static void Patch(this OperationLogEntity source, OperationLogEntity target) { if (target == null) { throw new ArgumentNullException("target"); } var patchInjection = new PatchInjection <OperationLogEntity>(x => x.ModifiedBy, x => x.ModifiedDate, x => x.Detail); target.InjectFrom(patchInjection, source); }