public static void DelOfferPrice(int OfferPriceId) { Query q = OfferPrice.Query(); q.AddWhere(OfferPrice.Columns.OfferPriceId, OfferPriceId); q.QueryType = QueryType.Delete; q.Execute(); }