コード例 #1
0
 public virtual pyatLevelDS.tbluserDataTable GetDataByUserNamenPassword(string username, string password) {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     if ((username == null)) {
         throw new global::System.ArgumentNullException("username");
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(username));
     }
     if ((password == null)) {
         throw new global::System.ArgumentNullException("password");
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = ((string)(password));
     }
     pyatLevelDS.tbluserDataTable dataTable = new pyatLevelDS.tbluserDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }
コード例 #2
0
 public virtual pyatLevelDS.tbluserDataTable GetData() {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     pyatLevelDS.tbluserDataTable dataTable = new pyatLevelDS.tbluserDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }