Contents
- DatabaseSchemaReader.dll - Class library (.net3.5)
- DatabaseSchemaViewer.exe - UI to read and view database schemas; options to generate SQL and code; option to compare another schema
- CopyToSQLite/CopyToSQLite.exe - UI to copy any database schema and data to SQLite or, if installed, SQL Server CE 4.0
- net4/DatabaseSchemaReader.dll - .Net 4.0 class library
Project Description
A simple, cross-database facade over .Net 2.0 DbProviderFactories to read database metadata.
Any ADO provider can be read (SqlServer, SqlServer CE 4, MySQL, SQLite, System.Data.OracleClient, ODP, Devart, PostgreSql, DB2...) into a single standard model.
In Nuget Install-Package DatabaseSchemaReader
There are utilities and two simple UI projects demonstrating how to use the model:
- View all data from any provider
- Generate POCO classes for tables, and NHibernate or EF Code First mapping files
- Generate simple ADO classes to use stored procedures
- Generate table DDL (and translate to another SQL syntax, eg SqlServer to Oracle or SQLite)
- Generate CRUD stored procedures (for SqlServer, Oracle, MySQL, DB2)
- Copy a database schema and data from any provider (SqlServer, Oracle etc) to a new SQLite database (and, with limitations, to SqlServer CE 4)
- Compare two schemas to generate a migration script
This is intended to be a tool for developers who use simple persistence databases on different platforms. It does not know advanced and provider-specific data types and concepts (geometry, tablespaces, enums). For database specific support, use your database admin UI, schema comparison or conversion tools.