vendor-neutrality

.Net: how to create vendor independent Dataset, Tableadapters, bindings (DB decided at runtime)

烂漫一生 提交于 2019-12-09 02:06:03
问题 I have a C# Windows Forms application, whose prototype was created on SQL Server (strongly-typed dataset). In its final version, the application must be able to work over SQL Server, MySQL or Oracle. Now I am wondering which parts (if any) can be reused from the prototype. 1. Dataset (typed) ? 2. TableAdapters? (probably not, they contain SQL Server-specific syntax) 3. Bindings to DataGridViews Most importantly, if we need to re-implement all this, is there a way to do this at design-time? Or

.Net: how to create vendor independent Dataset, Tableadapters, bindings (DB decided at runtime)

廉价感情. 提交于 2019-12-01 02:20:47
I have a C# Windows Forms application, whose prototype was created on SQL Server (strongly-typed dataset). In its final version, the application must be able to work over SQL Server, MySQL or Oracle. Now I am wondering which parts (if any) can be reused from the prototype. 1. Dataset (typed) ? 2. TableAdapters? (probably not, they contain SQL Server-specific syntax) 3. Bindings to DataGridViews Most importantly, if we need to re-implement all this, is there a way to do this at design-time? Or, 1. do we need to programmatically create untyped-dataset? 2. do we need to programmatically create