src/Misc/EFTools/EntityDesign/VisualStudio/ModelWizard/gui/ModelBuilderWizardForm.cs
// <summary>
//     Helper method to raise a dialog to display the encountered database connection errors
// </summary>
// <returns>the error message</returns>
Helper method to raise a dialog to display the encountered database connection errors
Helper method to raise a dialog to display the encountered database connection errors
internal static string ShowDatabaseConnectionErrorDialog(Exception e)
        {
            if (null == e)
            {
                Debug.Fail("exception should not be null");
                return null;
            }
            var errMsgWithInnerExceptions = VsUtils.ConstructInnerExceptionErrorMessage(e);
            var errMsg = string.Format(
                CultureInfo.CurrentCulture, Resources.DbConnectionErrorText, e.GetType().FullName, errMsgWithInnerExceptions);
            VsUtils.ShowErrorDialog(errMsg);
            return errMsg;
        }
internal static string ShowDatabaseConnectionErrorDialog ( Exception e ) { if ( null == e ) { Debug . Fail ( " " ) ; return null ; } var errMsgWithInnerExceptions = VsUtils . ConstructInnerExceptionErrorMessage ( e ) ; var errMsg = string . Format ( CultureInfo . CurrentCulture , Resources . DbConnectionErrorText , e . GetType ( ) . FullName , errMsgWithInnerExceptions ) ; VsUtils . ShowErrorDialog ( errMsg ) ; return errMsg ; }
Helper method to raise a dialog to display the encountered database connection errors
Helper method to raise a dialog to display the encountered database connection errors
// show the error dialog
the error message
the error message
e
Exception