• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SqlDataProvider类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SqlDataProvider的典型用法代码示例。如果您正苦于以下问题:C# SqlDataProvider类的具体用法?C# SqlDataProvider怎么用?C# SqlDataProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SqlDataProvider类属于命名空间,在下文中一共展示了SqlDataProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
        }
开发者ID:mRemoteNG,项目名称:mRemoteNG,代码行数:30,代码来源:ConnectionsLoader.cs


示例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;
 }
开发者ID:janker007,项目名称:cocoshun,代码行数:11,代码来源:DataProvider.cs


示例5: GetRepository

        public static IDataProvider GetRepository()
        {
            var ctl = ComponentFactory.GetComponent<IDataProvider>();

            if (ctl == null)
            {
                ctl = new SqlDataProvider();
                ComponentFactory.RegisterComponentInstance<IDataProvider>(ctl);
            }
            return ctl;
        }
开发者ID:DNNCommunity,项目名称:DNN.Forum,代码行数:11,代码来源:Utilities.cs


示例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


示例16: Get_All_By_incidentid

 public BLLCollection<IncidentResolution> Get_All_By_incidentid(int incidentid)
 {
     SqlDataProvider db = new SqlDataProvider();
     return db.Get_IncidentResolution_All_By_incidentid(incidentid);
 }
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:IncidentResolution.cs


示例17: Get_By_id

 public IncidentResolution Get_By_id(int incidentid)
 {
     SqlDataProvider db = new SqlDataProvider();
     return db.IncidentResolution_Get_By_incidentid(incidentid);
 }
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:IncidentResolution.cs


示例18: Get_By_id

 public Department_mst Get_By_id(int deptid)
 {
     SqlDataProvider db = new SqlDataProvider();
     return db.Department_mst_Get_By_deptid(deptid);
 }
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:Department_mst.cs


示例19: Get_All_By_Siteid

 public BLLCollection<SLA_mst> Get_All_By_Siteid(int siteid)
 {
     SqlDataProvider db = new SqlDataProvider();
     return db.Get_SLA_mst_All_By_Siteid(siteid);
 }
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:5,代码来源:SLA_mst.cs


示例20: Get_All_By_Problemid

 //public int Get_Current_ProblemHistoryid()
 //{
 //    SqlDataProvider db = new SqlDataProvider();
 //    return db.ProblemHistory_mst_Get_Current_ProblemHistoryid();
 //}
 public BLLCollection<ProblemNotes> Get_All_By_Problemid(int problemid)
 {
     SqlDataProvider db = new SqlDataProvider();
        //return db.Get_IncidentHistory_mst_All_By_incidentid(incidentid);
        return db.Get_ProblemNotes_mst_All_By_problemid(problemid);
 }
开发者ID:progressiveinfotech,项目名称:PRO_FY13_40_Helpdesk-Support-and-Customization_EIH,代码行数:11,代码来源:ProblemSymptom.cs



注:本文中的SqlDataProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SqlDataSource类代码示例发布时间:2022-05-24
下一篇:
C# SqlConnectionOwnership类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap