Пример #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
 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);
     }
 }