コード例 #1
0
ファイル: LinqService.cs プロジェクト: cjerome04/linq2db
 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.");
     }
 }
コード例 #2
0
ファイル: LinqService.cs プロジェクト: henleygao/linq2db
 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.");
 }