Esempio n. 1
0
 public LinqTranslationException(string message, LinqCommand command, Exception inner = null)
     : base(message, inner)
 {
     Command = command;
       if (Command != null)
     this.Data["LinqCommand"] = Command.ToString();
 }
Esempio n. 2
0
 private static void ThrowTranslationFailed(LinqCommand command, string message, params object[] args)
 {
     var msg = StringHelper.SafeFormat(message, args) + "\r\n Query:" + command.ToString();
       var exc = new LinqTranslationException(msg, command);
       throw exc;
 }