【发布时间】:2020-05-12 19:26:20
【问题描述】:
我正在以一种简单的方式将表格(分数)的数据从数据库导出到 .csv 文件中。 我想通过单击按钮来做到这一点。我使用 WPF 并在 SQLite 中保存数据表 注意:表格不显示在DataGridView中 分数表有列:PersonId、PersonName、ScoreDate
private void ExportToCSV(object sender, RoutedEventArgs e)
{
using (StreamWriter sw = File.AppendText(@"C:\Users\MAFA\Desktop\newfolder\endscores.csv"))
{
// how can i here call the table from the database ?!
};
}
【问题讨论】:
标签: c# wpf sqlite linq dbcontext