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); }
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); }