コード例 #1
0
        public static OperationLog ToCoreModel(this OperationLogEntity entity)
        {
            var retVal = new OperationLog();

            retVal.InjectFrom(entity);
            retVal.OperationType = (EntryState)Enum.Parse(typeof(EntryState), entity.OperationType);
            return(retVal);
        }
コード例 #2
0
        public static void Patch(this OperationLog source, OperationLog target)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }

            var patchInjection = new PatchInjection <OperationLog>(x => x.ModifiedBy, x => x.ModifiedDate);

            target.InjectFrom(patchInjection, source);
        }