public static Load ( IConnectionInfo cxInfo ) : |
||
cxInfo | IConnectionInfo | |
return |
public override object[] GetContextConstructorArguments(IConnectionInfo cxInfo) { _connInfo = RavenConnectionDialogViewModel.Load(cxInfo); // ReSharper disable CoVariantArrayConversion return(new[] { _connInfo }); // ReSharper restore CoVariantArrayConversion }
public override void InitializeContext(IConnectionInfo cxInfo, object context, QueryExecutionManager executionManager) { _connInfo = RavenConnectionDialogViewModel.Load(cxInfo); var rc = (RavenContext)context; rc.LogWriter = executionManager.SqlTranslationWriter; }
public override bool ShowConnectionDialog(IConnectionInfo cxInfo, bool isNewConnection) { _connInfo = isNewConnection ? new RavenConnectionDialogViewModel { CxInfo = cxInfo } : RavenConnectionDialogViewModel.Load(cxInfo); var win = new RavenConectionDialog(_connInfo); var result = win.ShowDialog() == true; if (result) { _connInfo.Save(); cxInfo.CustomTypeInfo.CustomAssemblyPath = Assembly.GetAssembly(typeof(RavenContext)).Location; cxInfo.CustomTypeInfo.CustomTypeName = "RavenLinqpadDriver.RavenContext"; } return(result); }
public override ParameterDescriptor[] GetContextConstructorParameters(IConnectionInfo cxInfo) { _connInfo = RavenConnectionDialogViewModel.Load(cxInfo); return(new[] { new ParameterDescriptor("connInfo", "RavenLinqpadDriver.RavenConnectionDialogViewModel") }); }
public override string GetConnectionDescription(IConnectionInfo cxInfo) { _connInfo = RavenConnectionDialogViewModel.Load(cxInfo); return(string.Format("RavenDB: {0}", _connInfo.Name)); }