ELENESSKI GAMES
  • Home
  • Games
    • Worzzler
    • The Lost Tribes
    • Crystal (Alpha) >
      • Video Tutorial
      • Join Discord
      • Wiki (Spoilers)
  • Unity
    • Facade Generator for Archimatix (Concept)
    • Elenesski Object Database (EODB)
    • Generic Move Camera
    • Unity C# Library
  • SQLINQ
    • Change Log
    • Concepts >
      • Overview
      • The Patterns
      • Database & Factories
      • Working with Tables
      • Custom Queries
      • Lazy Loading
      • Units of Work
    • Video Tutorials
    • Getting Started
    • Code Examples >
      • Implementing Behavior
      • Finding Objects
      • Custom Searches
      • Converters and Transformers
      • Object Association Management
      • New Objects
      • Creating Database
      • Associating Objects
      • Deleting Objects
      • Validating Objects
      • Saving
    • Sample Model >
      • Tutorial Model
      • Table Classes Code
      • Domain Classes Code
      • Factories Code
    • OSX Developers
    • Bridge Building
    • External Websites
    • Class Documentation
  • Presentations
    • 3D Ship Design
  • Music
    • Jamendo (Main)
    • Blend
    • Sound Cloud
    • Mixcloud (DJ)
    • DJ Demos
  • YouTube

Sample model

This model was created from the How to Model in SIM video tutorial.  Please watch that video for more information.

This section shows all of the code generated for the following class attribute model:
  1. Table Classes, which is basically a class library that deals with the loading and saving of objects in and out of SQLite.  
  2. Domain Classes, which is where most of your code interacts.
  3. Factories, which are used primarily by the Table reading mechanism to transform Table instance to Domain instances.
Picture

code generation log

Planet
  --- Created Table ... 87 lines
  --- Created Domain ... 127 lines
Settlement
  --- Created Table ... 134 lines
  --- Created Domain ... 175 lines
Town
  --- Created Domain ... 147 lines
City
  --- Created Domain ... 137 lines
District
  --- Created Table ... 87 lines
  --- Created Domain ... 127 lines
TownTypes
  --- Created Enum ... 44 lines

Created Factory ... 134 lines

Total Lines : 1199