Trace: » introducao » arrayfixture » setupfixture » arrayfixture » reference » fitlibraryfixtures » combinationfixture » whynotgeneric
Previous page: Installing DbFit Next page: Connecting to the database Parent page: DbFit for Integration tests
Why not use generic ADO.NET/JDBC interfaces?
Although database interfaces in .NET and Java are in theory database-independent, several key differences in SQL syntax and in driver implementation make it virtually impossible to support effective testing with a completely generic approach. The main differences are:
- Reading table columns and mapping their datatypes to host types
- Reading stored procedure/function parameters and mapping datatypes to host types
- Extracting parameter names from ad-hoc SQL queries
- Building plumbing SQL commands like insert/returning primary key
- Instantiating objects such as DB connection, commands, or parameters
Previous page: Installing DbFit Next page: Connecting to the database Parent page: DbFit for Integration tests
