public static void Patch(this PermissionEntity source, PermissionEntity target) { if (target == null) { throw new ArgumentNullException("target"); } var patchInjection = new PatchInjection <PermissionEntity>(x => x.Name, x => x.Description); target.InjectFrom(patchInjection, source); }