- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Data;
- using System.Data.SqlClient;
- namespace 人事管理系统
- {
- class Datacon
- {
- public SqlConnection getcon()
- {
- SqlConnection sqlcn = new SqlConnection();
- sqlcn.ConnectionString = Properties.Settings.Default.connectionStr; //"Data Source=YANG\SQLEXPRESS;Initial Catalog=人事管理系统;Integrated Security=True";
- return sqlcn;
- }
- }
- }