private object[] Take(GLPaymentListDetailEntity gLVoucherListDetailEntity) { return(new object[] { "@RefDetailID", gLVoucherListDetailEntity.RefDetailId, "@RefID", gLVoucherListDetailEntity.RefId, "@DetailRefType", gLVoucherListDetailEntity.DetailRefType, "@DetailID", gLVoucherListDetailEntity.DetailId, "@SortOrder", gLVoucherListDetailEntity.SortOrder, "@EntryType", gLVoucherListDetailEntity.EntryType, "@DetailRefID", gLVoucherListDetailEntity.DetailRefId, }); }
public string InsertGLPaymentListDetail(GLPaymentListDetailEntity glPaymentListDetail) { const string sql = @"uspInsert_GLPaymentListDetail"; return(Db.Insert(sql, true, Take(glPaymentListDetail))); }