예제 #1
0
        public static OperationLogEntity ToDataModel(this OperationLog log)
        {
            var retVal = new OperationLogEntity();

            retVal.InjectFrom(log);
            retVal.OperationType = log.OperationType.ToString();
            return(retVal);
        }
예제 #2
0
        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);
        }