⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getconnection.cs

📁 财务凭证管理系统主要由【系统管理】、【凭证管理】、【科目信息】、【账目查询】和【报表】等模块组成。进入该系统后
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace property.model.GetConnection
{
    class GetConnection
    {
        public SqlConnection con = null;
        //
        public SqlConnection GetCon()
        {
            try {
                //转义字符 // 
                con = new SqlConnection("server=a\\mr;uid=sa;pwd=;database=db_credence");
                con.Open();
                return con;
            }// end block try()
            catch(Exception e)
            {
                con = null;
                return con;
            }// end block catch()
            
        }//end block menthod SqlConnection GetCon()
    }// end block  class GetConnection
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -