public Zetbox.API.Async.ZbTask TriggerFetchRelationsAsync() { if (_triggerFetchRelationsTask != null) return _triggerFetchRelationsTask; _triggerFetchRelationsTask = Context.FetchRelationAsync<Zetbox.App.Base.RoleMembership_resolves_Relations_RelationEntryMemoryImpl>(new Guid("f74d425f-e733-4cba-baca-f4a05fbc0a80"), RelationEndRole.A, this); _triggerFetchRelationsTask.OnResult(r => { _Relations = new ObservableBSideListWrapper<Zetbox.App.Base.RoleMembership, Zetbox.App.Base.Relation, Zetbox.App.Base.RoleMembership_resolves_Relations_RelationEntryMemoryImpl, ICollection<Zetbox.App.Base.RoleMembership_resolves_Relations_RelationEntryMemoryImpl>>( this, new RelationshipFilterASideCollection<Zetbox.App.Base.RoleMembership_resolves_Relations_RelationEntryMemoryImpl>(this.Context, this)); // _Relations.CollectionChanged is managed by OnRelationsCollectionChanged() and called from the RelationEntry }); return _triggerFetchRelationsTask; }
public Zetbox.API.Async.ZbTask TriggerFetchDestinationPropertyAsync() { if (_triggerFetchDestinationPropertyTask != null) return _triggerFetchDestinationPropertyTask; if (!DestinationProperty_was_eagerLoaded) _triggerFetchDestinationPropertyTask = Context.FetchRelationAsync<Zetbox.App.SchemaMigration.SourceColumn_created_Property_RelationEntryMemoryImpl>(new Guid("fb27e3f8-3615-4f3b-ae2a-2b89b8782e27"), RelationEndRole.A, this); else _triggerFetchDestinationPropertyTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, null); _triggerFetchDestinationPropertyTask.OnResult(r => { _DestinationProperty = new ObservableBSideListWrapper<Zetbox.App.SchemaMigration.SourceColumn, Zetbox.App.Base.Property, Zetbox.App.SchemaMigration.SourceColumn_created_Property_RelationEntryMemoryImpl, ICollection<Zetbox.App.SchemaMigration.SourceColumn_created_Property_RelationEntryMemoryImpl>>( this, new RelationshipFilterASideCollection<Zetbox.App.SchemaMigration.SourceColumn_created_Property_RelationEntryMemoryImpl>(this.Context, this)); // _DestinationProperty.CollectionChanged is managed by OnDestinationPropertyCollectionChanged() and called from the RelationEntry }); return _triggerFetchDestinationPropertyTask; }
public Zetbox.API.Async.ZbTask TriggerFetchRevisionsAsync() { if (_triggerFetchRevisionsTask != null) return _triggerFetchRevisionsTask; _triggerFetchRevisionsTask = Context.FetchRelationAsync<at.dasz.DocumentManagement.Document_has_Revisions_RelationEntryMemoryImpl>(new Guid("69d27812-e981-443b-a94b-dfe1a95f3aad"), RelationEndRole.A, this); _triggerFetchRevisionsTask.OnResult(r => { _Revisions = new ObservableBSideListWrapper<at.dasz.DocumentManagement.File, Zetbox.App.Base.Blob, at.dasz.DocumentManagement.Document_has_Revisions_RelationEntryMemoryImpl, ICollection<at.dasz.DocumentManagement.Document_has_Revisions_RelationEntryMemoryImpl>>( this, new RelationshipFilterASideCollection<at.dasz.DocumentManagement.Document_has_Revisions_RelationEntryMemoryImpl>(this.Context, this)); // _Revisions.CollectionChanged is managed by OnRevisionsCollectionChanged() and called from the RelationEntry }); return _triggerFetchRevisionsTask; }
public Zetbox.API.Async.ZbTask TriggerFetchMitarbeiterAsync() { if (_triggerFetchMitarbeiterTask != null) return _triggerFetchMitarbeiterTask; _triggerFetchMitarbeiterTask = Context.FetchRelationAsync<Zetbox.App.Projekte.Projekte_haben_Mitarbeiter_RelationEntryMemoryImpl>(new Guid("c7b3cf10-cdc8-454c-826c-04a0f7e5ef3e"), RelationEndRole.A, this); _triggerFetchMitarbeiterTask.OnResult(r => { _Mitarbeiter = new ObservableBSideListWrapper<Zetbox.App.Projekte.Projekt, Zetbox.App.Projekte.Mitarbeiter, Zetbox.App.Projekte.Projekte_haben_Mitarbeiter_RelationEntryMemoryImpl, ICollection<Zetbox.App.Projekte.Projekte_haben_Mitarbeiter_RelationEntryMemoryImpl>>( this, new RelationshipFilterASideCollection<Zetbox.App.Projekte.Projekte_haben_Mitarbeiter_RelationEntryMemoryImpl>(this.Context, this)); // _Mitarbeiter.CollectionChanged is managed by OnMitarbeiterCollectionChanged() and called from the RelationEntry }); return _triggerFetchMitarbeiterTask; }