Пример #1
0
 public ItemModel()
 {
     tagsCollection = new RelatedModelsCollection <TagModel, ItemTagModel, ItemModel, TagModel> (this);
 }
Пример #2
0
 public TagModel()
 {
     itemsCollection = new RelatedModelsCollection <ItemModel, ItemTagModel, ItemModel, TagModel> (this);
 }
Пример #3
0
 public WorkspaceModel()
 {
     usersCollection = new RelatedModelsCollection <UserModel, WorkspaceUserModel, WorkspaceModel, UserModel> (this);
 }
Пример #4
0
 public TagModel()
 {
     workspaceRelationId   = ForeignRelation <WorkspaceModel> (PropertyWorkspaceId, PropertyWorkspace);
     timeEntriesCollection = new RelatedModelsCollection <TimeEntryModel, TimeEntryTagModel, TimeEntryModel, TagModel> (this);
 }
Пример #5
0
 public ProjectModel()
 {
     workspaceRelationId = ForeignRelation <WorkspaceModel> (PropertyWorkspaceId, PropertyWorkspace);
     clientRelationId    = ForeignRelation <ClientModel> (PropertyClientId, PropertyClient);
     usersCollection     = new RelatedModelsCollection <UserModel, ProjectUserModel, ProjectModel, UserModel> (this);
 }
Пример #6
0
 public UserModel()
 {
     defaultWorkspaceRelationId = ForeignRelation <WorkspaceModel> (PropertyDefaultWorkspaceId, PropertyDefaultWorkspace);
     workspacesCollection       = new RelatedModelsCollection <WorkspaceModel, WorkspaceUserModel, WorkspaceModel, UserModel> (this);
     projectsCollection         = new RelatedModelsCollection <ProjectModel, ProjectUserModel, ProjectModel, UserModel> (this);
 }