src/Shared/EntityFramework/Core/EntitySqlException.cs
// <summary>
// Initializes a new instance EntityException with contextual information to allow detailed error feedback.
// </summary>
Initializes a new instance EntityException with contextual information to allow detailed error feedback.
Initializes a new instance EntityException with contextual information to allow detailed error feedback .
internal static EntitySqlException Create(
            string commandText,
            string errorDescription,
            int errorPosition,
            string errorContextInfo,
            bool loadErrorContextInfoFromResource,
            Exception innerException)
        {
            int line;
            int column;
            var errorContext = FormatErrorContext(
                commandText, errorPosition, errorContextInfo, loadErrorContextInfoFromResource, out line, out column);
            var errorMessage = FormatQueryError(errorDescription, errorContext);
            return new EntitySqlException(errorMessage, errorDescription, errorContext, line, column, innerException);
        }
internal static EntitySqlException Create ( string commandText , string errorDescription , int errorPosition , string errorContextInfo , bool loadErrorContextInfoFromResource , Exception innerException ) { int line ; int column ; var errorContext = FormatErrorContext ( commandText , errorPosition , errorContextInfo , loadErrorContextInfoFromResource , out line , out column ) ; var errorMessage = FormatQueryError ( errorDescription , errorContext ) ; return new EntitySqlException ( errorMessage , errorDescription , errorContext , line , column , innerException ) ; }
Initializes a new instance EntityException with contextual information to allow detailed error feedback.
Initializes a new instance EntityException with contextual information to allow detailed error feedback .
commandText
string
errorDescription
string
errorPosition
int
errorContextInfo
string
loadErrorContextInfoFromResource
bool
innerException
Exception