protected virtual void ValidateQuery(LinqServiceQuery query) { if (AllowUpdates == false && query.Statement.QueryType != QueryType.Select) { throw new LinqException("Insert/Update/Delete requests are not allowed by the service policy."); } }
protected virtual void ValidateQuery(LinqServiceQuery query) { if (AllowUpdates == false && !query.Query.IsSelect) throw new LinqException("Insert/Update/Delete requests are not allowed by the service policy."); }