コード例 #1
0
		protected virtual void OnQueryOptimizationFailure(object sender, QueryOptimizationFailureEventArgs args)
		{
			throw new ApplicationException(args.Reason.Message, args.Reason);
		}
コード例 #2
0
 private void OnOptimizationFailure(object sender, QueryOptimizationFailureEventArgs args)
 {
     _failures.Add(args.Reason);
 }
コード例 #3
0
 protected override void OnQueryOptimizationFailure(object sender, QueryOptimizationFailureEventArgs args)
 {
     // do nothing as we expect some predicate to fail
 }