Exemplo n.º 1
0
        public static OperationLogEntity ToDataModel(this OperationLog log)
        {
            var retVal = new OperationLogEntity();

            retVal.InjectFrom(log);
            retVal.OperationType = log.OperationType.ToString();
            return(retVal);
        }
Exemplo n.º 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);
        }