/// <summary> /// 显示视图结构 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Show_View(object sender, RoutedEventArgs e) { if (!AppCache.ExistsView(AppCache.GetBuildLink())) { AppCache.SetViewList(DataSchema.ViewList(AppCache.GetBuildLink()) ?? new List <BaseTable>(), AppCache.GetBuildLink()); } Dtable.DataContext = AppCache.GetViewList(AppCache.GetBuildLink()); }