Skip to content

svenrog/Geta.Commerce.ContentModelGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Geta.Commerce.ContentModelGenerator

A library aimed at generating C# class files from code or other data sources. Also contains a content model generator aimed at exporting EPiServer Commerce content types generated by inRiver iPMC imports.

More about inRiver

More about EPiServer

Setup

  1. Fork this repository and build the solution in Visual Studio.
  2. There should now be a cmg.exe in your output folder.
  3. This file can be added to path.

Using cmg.exe

Parameters

Short Long Required Description
-o -output yes Output path
-n -namespace yes The namespace for the generated classes
-p -project no Path to the EPiServer web project
-c -connectionString no Override connection string (if not same as project web.config)
-v -connectionProvider no Override connection provider name (if other than SQL)
-b -generateBaseClasses no Aggregates common properties into base classes
-r -reflectExistingClasses no Merges reflected properties (from project) with database content types

Examples

In this case we want to just generate classes from Commerce

cmg -c {connectionString} -n Project.Web.Features.Models -o c:\temp\projectclasses

In this case we want to read back existing project classes, merge them into base classes and merge it with newly added commerce data.

cmg -p c:\projects\project\src\project.web -n Project.Web.Features.Models -o c:\temp\projectclasses -b -r

About

Generates C# classes from Commerce database MetaClasses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages