public LinqTranslationException(string message, LinqCommand command, Exception inner = null) : base(message, inner) { Command = command; if (Command != null) this.Data["LinqCommand"] = Command.ToString(); }
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; }