本文整理汇总了C#中ReplyPositiveBL.DatabaseHelper.ExecuteDataSet方法的典型用法代码示例。如果您正苦于以下问题:C# DatabaseHelper.ExecuteDataSet方法的具体用法?C# DatabaseHelper.ExecuteDataSet怎么用?C# DatabaseHelper.ExecuteDataSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ReplyPositiveBL.DatabaseHelper
的用法示例。
在下文中一共展示了DatabaseHelper.ExecuteDataSet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindAllContactsTargetedByAssignCamp_Unsub_Search
public static DataTable BindAllContactsTargetedByAssignCamp_Unsub_Search(string where, string ConnectionString, string CampignID, string orderby, string dir, int pageIndex, int pageSize, out int Count)
{
try
{
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@whereCondition", where);
oDatabaseHelper.AddParameter("@AssignedCampaignID", CampignID);
oDatabaseHelper.AddParameter("@orderby", orderby);
oDatabaseHelper.AddParameter("@dir", dir);
oDatabaseHelper.AddParameter("@PageIndex", pageIndex);
oDatabaseHelper.AddParameter("@PageSize", pageSize);
oDatabaseHelper.AddParameter("@Count", -1, System.Data.ParameterDirection.Output);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_ListContactMaster_ShowContactsTargetedWithAssignCampaignID_Pagewise_Search", ref ExecutionState);
Count = Convert.ToInt32(oDatabaseHelper.Command.Parameters["@Count"].Value);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
}
catch (Exception ex)
{
throw ex;
}
}
示例2: SearchDomainLookup
public static DataTable SearchDomainLookup(string ConnectionString, string Domain, string ListIds)
{
try
{
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
bool ExecutionState = false;
//StringBuilder whereCondition = new StringBuilder();
//Domain = Domain.Replace("'", "''");
//Domain = Domain.Replace("%", "[%]");
//Domain = Domain.Replace("_", "[_]");
//if (!string.IsNullOrEmpty(Domain))
//{
// if (whereCondition.Length > 0)
// whereCondition.Append(" OR %" + Domain + "%");
// else whereCondition.Append(" %" + Domain + "%");
//}
//if (whereCondition.Length == 0)
//{
// whereCondition.Append("1=1");
//}
string whereCondition = "%" + Domain + "%";
oDatabaseHelper.AddParameter("@ListIDs", ListIds.ToString());
oDatabaseHelper.AddParameter("@whereCondition", whereCondition.ToString());
DataSet dataSet = oDatabaseHelper.ExecuteDataSet("sp_ListMaster_SearchDomainName", ref ExecutionState);
return dataSet.Tables[0];
}
}
catch (Exception ex)
{
throw ex;
}
}
示例3: GetContactStatusByEmailIdsWithActiveStatus
public static DataTable GetContactStatusByEmailIdsWithActiveStatus(string ConnectionString, DataTable tblEmailAddress)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@TableEmailIds", tblEmailAddress);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_SelectContactStatusByEmailId_Active", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例4: GetAllBounceAndUnsubDetailsByType
public static DataTable GetAllBounceAndUnsubDetailsByType(string ConnectionString, string Type)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@Type", Type);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_GetAllBounceAndUnsubRecipientsByType", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例5: getSegmentDetails
public static DataTable getSegmentDetails(long segmentId, string ConnectionString)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@SegmentID", segmentId);
oDatabaseHelper.AddParameter("@ErrorCode", -1, System.Data.ParameterDirection.Output);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_SegmentMaster_GetSegmentDetails", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例6: GetAllRecipientsByListMasterIds
public static DataTable GetAllRecipientsByListMasterIds(StringBuilder strbSelectedLists, string ConnectionString)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
// The parameter '@ErrorCode' will contain the status after execution of the stored procedure.
oDatabaseHelper.AddParameter("@listids", strbSelectedLists.ToString());
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_GetAllRecipientsByListMasterIds", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例7: getSuppressDomain
//This method will get contact(s) of a particulat list from listcontactmaster table
//public DataTable getCustomLabel(Int64 TemplateID, Int64 CampaignID)
//{
// try
// {
// using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
// {
// bool ExecutionState = false;
// oDatabaseHelper.AddParameter("@CampaignID", CampaignID.ToString());
// oDatabaseHelper.AddParameter("@TemplateID", TemplateID.ToString());
// DataSet dataSet =
// oDatabaseHelper.ExecuteDataSet("sp_GetCustomLabel", ref ExecutionState);
// return dataSet.Tables[0];
// }
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
//This method will get contact(s) of a particulat list from listcontactmaster table
public DataTable getSuppressDomain(Int64 CampaignID)
{
bool ExecutionState = false;
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
string qryStr = "select * from DomineSupress where CampaignId = " + CampaignID;
DataSet dataSet = oDatabaseHelper.ExecuteDataSet(qryStr, CommandType.Text, ref ExecutionState);
return dataSet.Tables[0];
}
}
示例8: SelectEmailCount
public int SelectEmailCount(string ClientName, string ConnectionString)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@ClientName", ClientName);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_Material_GetTierSizeByClient", ref ExecutionState);
//we get only single column and row value in this so return single value
return Convert.ToInt32(ds.Tables[0].Rows[0][0]);
}
示例9: SelectAllTemplateNames
public static DataTable SelectAllTemplateNames(string ConnectionString, int CategoryID)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@CategoryID", CategoryID);
// The parameter '@ErrorCode' will contain the status after execution of the stored procedure.
oDatabaseHelper.AddParameter("@ErrorCode", -1, System.Data.ParameterDirection.Output);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_CategoryTemplateMaster_SelectAllTemplateNames", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例10: SelectAllCategoryNames
public static DataTable SelectAllCategoryNames(string ConnectionString)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
// The parameter '@ErrorCode' will contain the status after execution of the stored procedure.
oDatabaseHelper.AddParameter("@ErrorCode", -1, System.Data.ParameterDirection.Output);
//IDataReader dr = oDatabaseHelper.ExecuteReader("sp_CategoryTemplateMaster_SelectAllCategoryNames", ref ExecutionState);
//CategoryTemplateMasters CategoryTemplateMasters = PopulateObjectsFromReader(dr, ConnectionString);
//dr.Close();
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_CategoryTemplateMaster_SelectAllCategoryNames", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例11: GetAllAdvancedImportContactsPageWise
public static DataTable GetAllAdvancedImportContactsPageWise(string ConnectionString, string OrderBy, string sortdir, int pageSize, int pageIndex, out int rowCount)
{
DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString);
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@orderby", OrderBy);
oDatabaseHelper.AddParameter("@dir", sortdir);
oDatabaseHelper.AddParameter("@PageIndex", pageIndex);
oDatabaseHelper.AddParameter("@PageSize", pageSize);
oDatabaseHelper.AddParameter("@Count", -1, System.Data.ParameterDirection.Output);
oDatabaseHelper.AddParameter("@ErrorCode", -1, System.Data.ParameterDirection.Output);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_RecipienMaster_GetAllContacts_PageWise", ref ExecutionState);
rowCount = Convert.ToInt32(oDatabaseHelper.Command.Parameters["@Count"].Value);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
示例12: GetTemplatesInDraftByTemplateIds
public static DataSet GetTemplatesInDraftByTemplateIds(string TemplateIds, string ConnectionString)
{
try
{
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@TemplateIDs", TemplateIds);
DataSet dataSet = oDatabaseHelper.ExecuteDataSet("sp_TemplateMaster_ShowTemplatesUsedInDraftMails_CustomProc", ref ExecutionState);
return dataSet;
}
}
catch (Exception ex)
{
throw ex;
}
}
示例13: getAllMailingLinkUrls
public DataTable getAllMailingLinkUrls(String ConnectionString, string MailingName, string orderby, string dir)
{
try
{
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@MailingName", MailingName);
oDatabaseHelper.AddParameter("@orderby", orderby);
oDatabaseHelper.AddParameter("@dir", dir);
DataSet ds = oDatabaseHelper.ExecuteDataSet("sp_ContactMaster_GetLinkURLsByCampName_AMMRpt", ref ExecutionState);
oDatabaseHelper.Dispose();
return ds.Tables[0];
}
}
catch (Exception ex)
{
throw ex;
}
}
示例14: AdvanceSearchSelectLookup
public static DataTable AdvanceSearchSelectLookup(string ConnectionString, string ListName)
{
try
{
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
bool ExecutionState = false;
StringBuilder whereCondition = new StringBuilder();
ListName = ListName.Replace("'", "''");
ListName = ListName.Replace("%", "[%]");
ListName = ListName.Replace("_", "[_]");
if (!string.IsNullOrEmpty(ListName))
{
if (whereCondition.Length > 0)
whereCondition.Append(" OR ListName LIKE '%" + ListName + "%'");
else whereCondition.Append(" ListName LIKE '%" + ListName + "%'");
}
if (whereCondition.Length == 0)
{
whereCondition.Append("1=1");
}
oDatabaseHelper.AddParameter("@whereCondition", whereCondition.ToString());
oDatabaseHelper.AddParameter("@ErrorCode", -1, System.Data.ParameterDirection.Output);
DataSet dataSet = oDatabaseHelper.ExecuteDataSet("sp_AdvanceListMaster_SearchSelectNew", ref ExecutionState);
return dataSet.Tables[0];
}
}
catch (Exception ex)
{
throw ex;
}
}
示例15: getCustomLabel
public DataTable getCustomLabel(Int64 TemplateID, Int64 CampaignID)
{
try
{
using (DatabaseHelper oDatabaseHelper = new DatabaseHelper(ConnectionString))
{
bool ExecutionState = false;
oDatabaseHelper.AddParameter("@CampaignID", CampaignID.ToString());
oDatabaseHelper.AddParameter("@TemplateID", TemplateID.ToString());
DataSet dataSet =
oDatabaseHelper.ExecuteDataSet("sp_GetCustomLabel", ref ExecutionState);
return dataSet.Tables[0];
}
}
catch (Exception ex)
{
throw ex;
}
}