本文整理汇总了C#中SqlDataProvider类的典型用法代码示例。如果您正苦于以下问题:C# SqlDataProvider类的具体用法?C# SqlDataProvider怎么用?C# SqlDataProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SqlDataProvider类属于命名空间,在下文中一共展示了SqlDataProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InsertFeedbackCustomer
public int InsertFeedbackCustomer()
{
SqlDataProvider db = new SqlDataProvider();
// return db.Insert_UserToEmail_mst(this);
return db.Insert_FeedbackCustomer_mst(this);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:7,代码来源:UserEmail.cs
示例2: btnsave_Click
protected void btnsave_Click(object sender, EventArgs e)
{
DataTable dtMealTemplate = new DataTable();
SqlDataProvider db = new SqlDataProvider();
dtMealTemplate.Columns.Add("Userid", Type.GetType("System.Int32"));
dtMealTemplate.Columns.Add("Emailid", Type.GetType("System.String"));
foreach (GridViewRow gvr in grdvwSite.Rows)
{
///DataRow drMT = new DataRow();
DataRow drMT = dtMealTemplate.NewRow();
drMT["Userid"] = gvr.Cells[1].Text;
drMT["Emailid"] = gvr.Cells[4].Text;
dtMealTemplate.Rows.Add(drMT);
CheckBox myCheckBox = (CheckBox)gvr.FindControl("CheckAll");
if (myCheckBox.Checked == true)
{
UserEmail obj1 = new UserEmail();
objuseremail.Userid = Convert.ToInt16(drMT["Userid"]);
objuseremail.Emailid = drMT["Emailid"].ToString();
objsentuseremail.SentFeedbackmailToUser(objuseremail.Userid, objuseremail.Emailid);
objuseremail.InsertFeedbackCustomer();
}
}
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:28,代码来源:UserSurvey.aspx.cs
示例3: LoadConnections
public ConnectionTreeModel LoadConnections(bool import)
{
IDeserializer deserializer;
if (UseDatabase)
{
var connector = new SqlDatabaseConnector();
var dataProvider = new SqlDataProvider(connector);
var dataTable = dataProvider.Load();
deserializer = new DataTableDeserializer(dataTable);
}
else
{
var dataProvider = new FileDataProvider(ConnectionFileName);
var xmlString = dataProvider.Load();
deserializer = new XmlConnectionsDeserializer(xmlString, PromptForPassword);
}
var connectionTreeModel = deserializer.Deserialize();
if (connectionTreeModel != null)
frmMain.Default.ConnectionsFileName = ConnectionFileName;
else
connectionTreeModel = new ConnectionTreeModel();
if (import) return connectionTreeModel;
PuttySessionsManager.Instance.AddSessions();
connectionTreeModel.RootNodes.AddRange(PuttySessionsManager.Instance.RootPuttySessionsNodes);
return connectionTreeModel;
}
示例4: DataProvider
static DataProvider()
{
DataProvider dataProvider;
if (FrameWork.Common.GetDBType == "MsSql")
dataProvider = new SqlDataProvider();
else if (FrameWork.Common.GetDBType == "Access")
dataProvider = new AccessDataProvider();
else
throw new ApplicationException("数据库配置不对!");
_defaultInstance = dataProvider;
}
示例5: GetRepository
public static IDataProvider GetRepository()
{
var ctl = ComponentFactory.GetComponent<IDataProvider>();
if (ctl == null)
{
ctl = new SqlDataProvider();
ComponentFactory.RegisterComponentInstance<IDataProvider>(ctl);
}
return ctl;
}
示例6: Get_By_Id
public int Get_By_Id(int CustId, int siteid)
{
SqlDataProvider db = new SqlDataProvider();
return db.Get_CustId_mst_Get_By_SiteId(CustId, siteid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:5,代码来源:CustomerToSiteMapping.cs
示例7: Delete
public int Delete(int CustId, int siteid)
{
SqlDataProvider db = new SqlDataProvider();
return db.Delete_CustomerToSiteMapping_mst_By_id(CustId, siteid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_TerexBest,代码行数:5,代码来源:CustomerToSiteMapping.cs
示例8: Delete
public int Delete(int slaid)
{
SqlDataProvider db = new SqlDataProvider();
return db.Delete_SLA_mst_By_id(slaid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:SLA_mst.cs
示例9: Insert
public int Insert()
{
SqlDataProvider db = new SqlDataProvider();
return db.Insert_SLA_mst(this);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:SLA_mst.cs
示例10: Get_By_id
public SLA_mst Get_By_id(int Slaid)
{
SqlDataProvider db = new SqlDataProvider();
return db.SLA_mst_Get_By_Slaid(Slaid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:SLA_mst.cs
示例11: Insert
public int Insert()
{
SqlDataProvider db = new SqlDataProvider();
return db.Insert_IncidentResolution(this);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:IncidentResolution.cs
示例12: Get_By_DepartmentName
public int Get_By_DepartmentName(string departmentname, int siteid)
{
SqlDataProvider db = new SqlDataProvider();
return db.Get_deptid_mst_Get_By_DepartmentName(departmentname, siteid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:Department_mst.cs
示例13: Get_All_By_SiteId
public BLLCollection<Department_mst> Get_All_By_SiteId(int siteid)
{
SqlDataProvider db = new SqlDataProvider();
return db.Get_Department_mst_All_By_SieId(siteid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:Department_mst.cs
示例14: Get_All
public BLLCollection<Department_mst> Get_All()
{
SqlDataProvider db = new SqlDataProvider();
return db.Get_Department_mst_All();
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:Department_mst.cs
示例15: Delete
public int Delete(int deptid)
{
SqlDataProvider db = new SqlDataProvider();
return db.Delete_Department_mst_By_id( deptid);
}
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:Department_mst.cs