Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

How to Use

Setup

  1. Clone this site and https://github.com/kae-made/artifacts-laundromat-in-hotel-tutorial.
  2. Install BridgePoint according to https://xtuml.org/download/.
  3. Open ./CodeGenerator/CodeGenerator.sln by Visual Studio 2022.
  4. Set ConsoleAppCsharpGenerator as startup project.
  5. Edit command line args in debug launch profile of ConsoleAppCsharpGenerator project depending on your environment.
  6. Build & Run!

Command line arguments.

ConsoleAppCsharpGenerator --metamodel BridgePoint\tools\mc\schema\sql\xtumlmc_schema.sql --base-datatype BridgePoint\tools\mc\schema\Globals.xtuml --domainmodel workspace\domain-model\models\domain-model --project generating-project-name --dotnetver net5.0 --gen-folder csharp\gen

Command line options

  • --metamodel OOA of OOA definition sql file
    absolute file path of xtumlmc_schema.sql which is stored into tools\mc\schema\sql of your BridgePoint installation folder.
  • --base-type core data type definition xtuml file
    absolute file path of Globals.xtuml which is stored into tools\mc\schema\sql of your BridgePoint installation folder.
  • --domain-model your-domain-model
    absolute folder path of your domain model under BridgePoint's workspace.
  • --project project-name
    generating C# project name.
  • --dotnetver .NET runtime version
    .NET runtime version which is used in generating C# project.
  • --gen-folder folder-path
    generated files are stored into the folder-path.
  • --action-gen
    • true: generate behavior code of function, transformer, entry action and derived mathematical attribute
    • false: don't generate behavior code. user should write code by hand.
  • -adoptor-gen
    • true: generate adaptor class for another domain implementation
    • false: don't generate adaptor class

※ When user uses action code generation, user needs to build domain model on BridgePoint and to use sql file under gen/code_generation folder of domain model.