Esempio n. 1
0
 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.");
     }
 }
Esempio n. 2
0
 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.");
 }