示例#1
0
        public bool UpdateObject(Reservation dataobjectForChange, int id)
        {
            var    updateReservation = SUpdateScripts.SqlLiteDBUpdateReservation(dataobjectForChange, id);
            string result            = DBConnectAndExecute.ExecuteQuery(updateReservation);

            if (result != string.Empty)
            {
                return(false);
            }

            return(VerifyUpdateData(dataobjectForChange, selectReservation.GetRowsForTable(SGetAllRowsFromSpecificTable.ReservationSelectAllRowsQuery())
                                    .Where(x => x.reservation_id == id).First()));
        }
示例#2
0
        public bool UpdateObject(Client dataobjectForChange, int id)
        {
            var    updateClient = SUpdateScripts.SqlLiteDBUpdateClient(dataobjectForChange, id);
            string result       = DBConnectAndExecute.ExecuteQuery(updateClient);

            if (result != string.Empty)
            {
                return(false);
            }

            return(VerifyUpdateData(dataobjectForChange, selectClient.GetRowsForTable(SGetAllRowsFromSpecificTable.ClientSelectAllRowsQuery())
                                    .Where(x => x.client_id == id).First()));
        }