/// <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()); }
/// <summary> /// 更新视图结构 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ReLoad_View(object sender, RoutedEventArgs e) { AppCache.SetViewList(DataSchema.ViewList(AppCache.GetBuildLink(), true) ?? new List <BaseTable>(), AppCache.GetBuildLink()); Dtable.DataContext = AppCache.GetViewList(AppCache.GetBuildLink()); }