Database Schema Reader
来源:互联网 发布:全国多少个省市 知乎 编辑:程序博客网 时间:2024/06/05 20:56
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.
How to grab the schema:
1. Know your connection string and provider (here SqlServer; can be Oracle, SQLite, MySQL, PostgreSql, DB2, Sybase, Firebird, Ingres, Cache, VistaDB...)
2. Write two lines of code
3. Use the simple schema model!
Simple code-generation
Using code generator for POCO classes and NHibernate/ EF CodeFirst mapping.
Simple SQL generation
API
- Schema Reading - reading the schema from the database
- Limitations - what this schema reader can and cannot do
- AutoNumbering - dealing with identity and sequences for autonumbering
- SQL Generation - generating SQL from a schema
- Sql Conversion - converting SQL DDL from one database to another
- Code Generation - generating C# classes and projects from a schema
- Code First - reverse engineering C# EF Code First projects from a schema
- Comparison - comparing two schemas and making a migration script
- Migrations - generating scripts to migrate database schemas
- Writing Data - creating a script of SQL "INSERT"s
UI
UI DocumentationLast edited Feb 4, 2014 at 4:15 PM by Martinjw, version 17
相关地址:http://dbschemareader.codeplex.com/wikipage?title=UI%20Documentation&referringTitle=Documentation
http://dbschemareader.codeplex.com/releases/view/612307
- Database Schema Reader
- Database Schema
- database schema
- piwik database schema 研究
- 改善database schema
- Database catalog and schema
- PostgreSQL tablespace database schema
- 系统安装手记-Database schema
- Trac - Trac Database Schema - 数据结构
- Auto Building and Database Schema
- Database schema(From Wikipedia)
- sqlserver基础:database schema user
- Mysql中Database和Schema
- Getting database schema using ADO.NET
- GreenPlum获取table、schema及其database大小
- create schema 与create database的区别
- Oracle触发器(trigger):view,schema,database
- create schema 与create database的区别
- Linux下调试shell的几种方法
- 排序算法原理简述及C语言实现
- Qt所有类型转换
- [OpenCV]拓展图像边界
- Android编写Service入门
- Database Schema Reader
- (母函数变形)hdu 2082 找单词
- Nginx+Tomcat配置多个二级域名
- android-基础篇-常用控件
- Android Lib Project与Android Project中R文件的区别
- nyoj.63 小猴子下落【数据结构】 2015/03/11
- 基础算法001---二叉树遍历 Java
- 漫谈高数 特征向量物理意义
- 当标签内有嵌套的子标签的情况下,如何用jquery检索纯文本内容