public static dataModel.RoleAssignmentEntity ToAssignmentDataModel(this Role source) { var result = new dataModel.RoleAssignmentEntity(); result.RoleId = source.Id; return(result); }
public static void Patch(this dataModel.RoleAssignmentEntity source, dataModel.RoleAssignmentEntity target) { if (target == null) { throw new ArgumentNullException("target"); } var patchInjection = new PatchInjection <dataModel.RoleAssignmentEntity>(x => x.RoleId, x => x.AccountId); target.InjectFrom(patchInjection, source); }
public static void Patch(this RoleAssignmentEntity source, RoleAssignmentEntity target) { if (target == null) throw new ArgumentNullException("target"); var patchInjection = new PatchInjection<RoleAssignmentEntity>(x => x.RoleId, x => x.AccountId); target.InjectFrom(patchInjection, source); }
public static dataModel.RoleAssignmentEntity ToAssignmentDataModel(this Role source) { var result = new dataModel.RoleAssignmentEntity(); result.RoleId = source.Id; return result; }