예제 #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;
 }