コード例 #1
0
 public virtual dsLanguageData.CardDataTable GetDataByCardID(int ID) {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(ID));
     dsLanguageData.CardDataTable dataTable = new dsLanguageData.CardDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }
コード例 #2
0
 public virtual dsLanguageData.CardDataTable GetDataByCardInfo(string question, string answer) {
     this.Adapter.SelectCommand = this.CommandCollection[4];
     if ((question == null)) {
         throw new global::System.ArgumentNullException("question");
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(question));
     }
     if ((answer == null)) {
         throw new global::System.ArgumentNullException("answer");
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = ((string)(answer));
     }
     dsLanguageData.CardDataTable dataTable = new dsLanguageData.CardDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }
コード例 #3
0
 public virtual dsLanguageData.CardDataTable GetData() {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     dsLanguageData.CardDataTable dataTable = new dsLanguageData.CardDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }