コード例 #1
0
        /// <summary>
        /// Gets a single row from the table fulfilling the criteria.
        /// </summary>
        /// <param name="wID">A ID as criteria.</param>
        /// <returns>The row fulfilling the criteria</returns>
        public KontoRow GetSingleRow(int wID, bool canBeNull)
        {
            KontoRow ret = mTable.GetSingleRow(wID);

            if (ret.IsNull && !canBeNull)
            {
                UnexpectedNull(MethodBase.GetCurrentMethod(), wID);
            }
            return(ret);
        }
コード例 #2
0
 internal KontoVm(KontoRow aRow)
 {
     this.Row = aRow;
 }
コード例 #3
0
 internal KontoVm()
 {
     this.Row = KontoRow.InitEmpty();
 }
コード例 #4
0
 /// <summary>
 /// Updates the given single row on the table.
 /// </summary>
 /// <param name="row">The prefilled row.</param>
 public void UpdateSingleRow(KontoRow row)
 {
     mTable.UpdateSingleRow(row.Bezeichnung, row.ID);
 }
コード例 #5
0
 /// <summary>
 /// Inserts the given row and returns its id.
 /// </summary>
 /// <param name="row">The prefilled row to insert.</param>
 /// <returns>The inserted row</returns>
 public int InsertRow(KontoRow row)
 {
     return(mTable.InsertRow(row.Bezeichnung));
 }
コード例 #6
0
 /// <summary>
 /// Deletes the given row.
 /// </summary>
 /// <param name="row">The row to delete</param>
 public void DeleteSingleRow(KontoRow row)
 {
     mTable.DeleteSingleRow(row.ID);
 }