/// <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);
        }
Beispiel #2
0
 internal KontoVm(KontoRow aRow)
 {
     this.Row = aRow;
 }
Beispiel #3
0
 internal KontoVm()
 {
     this.Row = KontoRow.InitEmpty();
 }
 /// <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);
 }
 /// <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));
 }
 /// <summary>
 /// Deletes the given row.
 /// </summary>
 /// <param name="row">The row to delete</param>
 public void DeleteSingleRow(KontoRow row)
 {
     mTable.DeleteSingleRow(row.ID);
 }