示例#1
0
文件: Connections.cs 项目: jhogan/qed
 public Connection(ConnectionString connStr)
 {
     Setup();
     this._catalog = 	connStr.InitialCatalog;
     this._SSPI = (connStr.IntegratedSecurity.ToUpper() == "SSPI");
     this._encPasswd = connStr.Password;
     this._user =  connStr.UserID;
     this._server = new Server(); this._server.DNSName = connStr.DataSource;
 }
示例#2
0
文件: Servers.cs 项目: jhogan/qed
 public bool Contains(Server obj)
 {
     foreach(Server child in List) {
         if (obj.Equals(child)){
             return true;
         }
     }
     return false;
 }
示例#3
0
文件: Servers.cs 项目: jhogan/qed
 public void LoadAll()
 {
     using(MySqlConnection conn = Connections.Inst.item("QED_DB").MySqlConnection){
         using(MySqlDataReader dr = MySqlDBLayer.LoadAll(conn, _table)){
             Server server;
             while(dr.Read()) {
                 server = new Server(dr);
                 server.BusinessCollection = this;
                 List.Add(server);
             }
         }
     }
 }
示例#4
0
文件: Servers.cs 项目: jhogan/qed
 public Server Add(Server obj)
 {
     obj.BusinessCollection = this;
     List.Add(obj); return obj;
 }