Exemple #1
0
        public static List <ExplorerItem> GetSchemaAndBuildAssembly(DB2Properties properties, AssemblyName name, ref string nameSpace, ref string typeName, string dllPath)
        {
            var tables   = new TableInfoList(properties);
            var routines = new StoredProcedureInfoList(properties);
            var schema   = new DatabaseExplorerInfoList(tables, routines).ToList();

            var code = new DataContextCodeGenerator(tables, routines, nameSpace, typeName).Generate();

            BuildAssembly(code, name, dllPath);

            return(schema);
        }
 public DatabaseExplorerInfoList(DB2Properties properties)
     : this(new TableInfoList(properties), new StoredProcedureInfoList(properties))
 {
 }
Exemple #3
0
 public ConnectionDialog(IConnectionInfo cxInfo)
 {
     DataContext = new DB2Properties(cxInfo);
     Background  = SystemColors.ControlBrush;
     InitializeComponent();
 }
Exemple #4
0
        /// <summary>Returns the text to display in the root Schema Explorer node for a given connection info.</summary>
        public override string GetConnectionDescription(IConnectionInfo cxInfo)
        {
            var props = new DB2Properties(cxInfo);

            return($"{props.Database}.{props.Schema}.{props.ServerName}");
        }