/// <summary> /// Deletes all the rates for a specific owner account. /// </summary> /// <param name="owner">The owner to delete all the rates for.</param> public void DeleteAll(string owner) { using (var sipSorceryEntities = new SIPSorceryEntities()) { sipSorceryEntities.ExecuteStoreCommand("delete from rate where owner = @p0", owner); } }
public static void ExecuteQuery(string query) { using (var sipSorceryEntities = new SIPSorceryEntities()) { sipSorceryEntities.ExecuteStoreCommand(query, null); } }