public static void Delete(string tableName, string itemId) { if (!IsReadOnly()) { using (PriemEntities context = new PriemEntities()) { context.Delete(tableName, itemId); } } }