资 源 简 介
This tool generates a non-generic small c# framework that can be used to interact with existing databases. Initially only SQLite is supported, but implementing the interface IDatabaseProvider it"s easy to add other dbs (I plan to included Oracle soon).
The output is the source code of a native CSharp project running under framework 3.5, but it will probably work fine on other versions also(you can just modify the Project template file to try something else).
The generation process works based on templates, and produce a set of 3 classes for each table found on your database. That classes exposes all funcionalities related to the corresponding table and to the single rows that it may contain.
| Source Table Name | Class Name | Functionality | Description |
|:------------------|:-----------|:--------------|:------------|
| SOME_TABLE | SomeTable | Business Class | It offers high level access to make manipulate, create or remove an element |
| SOME_TABLE
文 件 列 表
CodeGenerator.pdb
Templates
CodeGenerationTemplates
ExternalReferences
CodeGenerationTemplates
AssemblyInfo.tpl
Class.tpl
ClassConstructor.tpl
ClassForeignKeyProperty.tpl
ClassMethodsRevert.tpl
ClassProperty.tpl
ClassPropertyLocalVariable.tpl
DataAccessClass.tpl
DataAccessClassCreateFromDataRowMethod.tpl
DataAccessClassDataLoader.tpl
DataAccessClassGetAllMethod.tpl
DataAccessClassInsertMethod.tpl
DataAccessClassPrivateVariables.tpl
DataAccessClassRemoveMethods.tpl
DataAccessClassUpdateMethod.tpl
DataClass.tpl
DataClassProperty.tpl
Project.tpl
SQLiteConnector.tpl
CodeGenerator.exe