CedricDumont / CExtensions-EFModelGenerator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CExtensions.EFModelGenerator

(Note : currently in beta and preview)

cextensions-efmodelgenerator MyGet Build Status

Contribute

Want to start coding in c# or you have a need for this kind of tool, then check issues marked with Help Wanted Label.

Description

CExtensions.EFModelGenerator is a tool used to generate code from a database schema. It can be used as poco generator, but can also generate other kind of files

The tool is configurable, customizable and currently supports Oracle and SqlServer out of the box. It is possible to write your own Provider. Check CExtensions.EFModelGenerator.Oracle as an example on how to implement a provider.

The code is generated using Serializers. There is a serilizer to generate Poco classes and a DbContext. You can write your own serilizer and it does not have to generate c# code. Check CExtensions.EFModelGenerator.Serializers for implementations.

There is a Visual Studio extension : CExtensions.EFModelGenerator

It's alos available on nuget.org :

How to use

  1. you will need a config file (some samples : simple model)
  2. If you are using the Vs extension, then simply right click on the file and Generate.
  3. If you are using the nuget packags, create a Console Project and it's simple as:
 Generator.Generate(@"c:\Temp:\MyConfig.json");

Config Samples:

the following project: Configuration Samples lists some configuration samples.

About

License:MIT License


Languages

Language:C# 96.6%Language:HTML 2.2%Language:CSS 1.2%