private static object[] Take(DepositDetailParallelEntity depositDetailParallel) { return(new object[] { "@RefDetailID", depositDetailParallel.RefDetailId, "@RefID", depositDetailParallel.RefId, "@Description", depositDetailParallel.Description, "@AccountNumber", depositDetailParallel.AccountNumber, "@CorrespondingAccountNumber", depositDetailParallel.CorrespondingAccountNumber, "@AmountOc", depositDetailParallel.AmountOc, "@AmountExchange", depositDetailParallel.AmountExchange, "@VoucherTypeId", depositDetailParallel.VoucherTypeId, "@BudgetSourceCode", depositDetailParallel.BudgetSourceCode, "@AccountingObjectId", depositDetailParallel.AccountingObjectId, "@BudgetItemCode", depositDetailParallel.BudgetItemCode, "@DepartmentId", depositDetailParallel.DepartmentId, "@MergerFundId", depositDetailParallel.MergerFundId, "@ProjectId", depositDetailParallel.ProjectId, "@FixedAssetId", depositDetailParallel.FixedAssetId, "@InventoryItemId", depositDetailParallel.InventoryItemId, "@EmployeeId", depositDetailParallel.EmployeeId, "@CustomerId", depositDetailParallel.CustomerId, "@VendorId", depositDetailParallel.VendorId, }); }
internal static DepositDetailParallelModel FromDataTransferObject(DepositDetailParallelEntity entity) { return(entity == null ? null : AutoMapper.Mapper.Map <DepositDetailParallelEntity, DepositDetailParallelModel>(entity)); }
public string UpdateDepositDetailParallel(DepositDetailParallelEntity depositDetail) { const string procedures = @"uspUpdate_DepositDetailParallel"; return(Db.Update(procedures, true, Take(depositDetail))); }
public int InsertDepositDetailParallel(DepositDetailParallelEntity depositDetail) { const string procedures = @"uspInsert_DepositDetailParallel"; return(Db.Insert(procedures, true, Take(depositDetail))); }