public virtual int FillByCardID(dsLanguageData.PictureDataTable dataTable, int cardID) { this.Adapter.SelectCommand = this.CommandCollection[2]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(cardID)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }
public virtual int Fill(dsLanguageData.PictureDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }
public virtual int FillByCardIDs(dsLanguageData.RecentPlaylistDataTable dataTable, string cardIDs) { this.Adapter.SelectCommand = this.CommandCollection[4]; if ((cardIDs == null)) { throw new global::System.ArgumentNullException("cardIDs"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(cardIDs)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }
public virtual int FillByName(dsLanguageData.DictionaryDataTable dataTable, string name) { this.Adapter.SelectCommand = this.CommandCollection[4]; if ((name == null)) { throw new global::System.ArgumentNullException("name"); } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(name)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }
public virtual int FillByID(dsLanguageData.SoundClipDataTable dataTable, int id) { this.Adapter.SelectCommand = this.CommandCollection[3]; this.Adapter.SelectCommand.Parameters[0].Value = ((int)(id)); if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }
public virtual int FillByCardInfo(dsLanguageData.CardDataTable dataTable, 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)); } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; }