internal static string GetGenericErrorMessage(string commandText, int position)
        {
            int lineNumber   = 0;
            int columnNumber = 0;

            return(EntitySqlException.FormatErrorContext(commandText, position, "GenericSyntaxError", true, out lineNumber, out columnNumber));
        }
        internal static EntitySqlException Create(
            string commandText,
            string errorDescription,
            int errorPosition,
            string errorContextInfo,
            bool loadErrorContextInfoFromResource,
            Exception innerException)
        {
            int    lineNumber;
            int    columnNumber;
            string errorContext = EntitySqlException.FormatErrorContext(commandText, errorPosition, errorContextInfo, loadErrorContextInfoFromResource, out lineNumber, out columnNumber);

            return(new EntitySqlException(EntitySqlException.FormatQueryError(errorDescription, errorContext), errorDescription, errorContext, lineNumber, columnNumber, innerException));
        }