private static object[] Take(FADecrementDetailParallelEntity detail) { return(new object[] { "@RefDetailID", detail.RefDetailId, "@RefID", detail.RefId, "@RefTypeID", detail.RefTypeId, "@Description", detail.Description, "@AccountNumber", detail.AccountNumber, "@CorrespondingAccountNumber", detail.CorrespondingAccountNumber, "@Quantity", detail.Quantity, "@Price", detail.Price, "@PriceExchange", detail.PriceExchange, "@AmountOc", detail.AmountOc, "@AmountExchange", detail.AmountExchange, "@BudgetSourceCode", detail.BudgetSourceCode, "@BudgetItemCode", detail.BudgetItemCode, "@VoucherTypeID", detail.VoucherTypeId, "@DepartmentID", detail.DepartmentId, "@ProjectID", detail.ProjectId, "@FixedAssetID", detail.FixedAssetId, "@InventoryItemID", detail.InventoryItemId, "@MergerFundID", detail.MergerFundId, "@AccountingObjectID", detail.AccountingObjectId, "@EmployeeID", detail.EmployeeId, "@CustomerID", detail.CustomerId, "@VendorID", detail.VendorId, "@AutoBusinessID", detail.AutoBusinessId, }); }
internal static FixedAssetDecrementDetailParallelModel FromDataTransferObject(FADecrementDetailParallelEntity entity) { return(entity == null ? null : AutoMapper.Mapper.Map <FADecrementDetailParallelEntity, FixedAssetDecrementDetailParallelModel>(entity)); }
public string UpdateFixedAssetDecrementDetailParallel(FADecrementDetailParallelEntity detail) { const string procedures = @"uspUpdate_FixedAssetDecrementDetailParallel"; return(Db.Update(procedures, true, Take(detail))); }
public int InsertFixedAssetDecrementDetailParallel(FADecrementDetailParallelEntity detail) { const string procedures = @"uspInsert_FixedAssetDecrementDetailParallel"; return(Db.Insert(procedures, true, Take(detail))); }