Пример #1
0
 public virtual void Patch(ThumbnailTaskOptionEntity target)
 {
     target.ThumbnailOptionId = ThumbnailOptionId;
     target.ThumbnailOption   = ThumbnailOption;
     target.ThumbnailTaskId   = ThumbnailOptionId;
     target.ThumbnailTask     = ThumbnailTask;
 }
        public virtual ThumbnailTaskOptionEntity FromModel(ThumbnailOption option, ThumbnailTask task)
        {
            var result = new ThumbnailTaskOptionEntity();

            result.ThumbnailTaskId   = task.Id;
            result.ThumbnailOptionId = option.Id;
            return(result);
        }
        public virtual void Patch(ThumbnailTaskOptionEntity target)
        {
            if (target == null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            var patchInjection = new PatchInjection <ThumbnailTaskOptionEntity>(x => x.ThumbnailOptionId, x => x.ThumbnailTaskId);

            target.InjectFrom(patchInjection, this);
        }