Let us now apply Dartlero to a model with two concepts and one relationship, our category-links model. Once again, clone the project from GitHub with:
git clone git://github.com/dzenanr/dartlero_category_links.git
The model is implemented in the lib
folder of the dartlero_category_links
application (refer to the following screenshot):
There are three dart files in the model
folder, one for the model and two for the two entities. The dartlero_category_links
library is defined in the dartlero_category_links.dart
file:
library dartlero_category_links; import 'package:dartlero/dartlero.dart'; part 'model/category_entities.dart'; part 'model/category_links_model.dart'; part 'model/link_entities.dart';
There are two classes in the category_entities.dart
file, one for the entity definition and the other for a collection of entities. The
Category
class of the model extends the ConceptEntity
class of Dartlero
(line (1)
),...