コード例 #1
0
        public MetadataLight Clone()
        {
            var mdl = new MetadataLight(this.Connection);

            mdl._schemas = (from s in this._schemas
                            select s.Clone()).ToList();
            mdl.Extractor = Extractor;
            return(mdl);
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: aquilax1/DBLint
 private void SelectConnection_ConnectionChanged(object sender, Connection conn)
 {
     if (conn == null)
     {
         this.performSelection.DataContext = null;
         return;
     }
     try
     {
         if (vm.MetadataSelection == null || (vm.CurrentConnection != null && !this.vm.CurrentConnection.Equals(conn)))
         {
             var metadataLight = new MetadataLight(conn);
             this.performSelection.DataContext = vm.MetadataSelection = metadataLight;
         }
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }