本文整理汇总了C#中Zetbox.API.Async.ZbTask类的典型用法代码示例。如果您正苦于以下问题:C# Zetbox.API.Async.ZbTask类的具体用法?C# Zetbox.API.Async.ZbTask怎么用?C# Zetbox.API.Async.ZbTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Zetbox.API.Async.ZbTask类属于命名空间,在下文中一共展示了Zetbox.API.Async.ZbTask类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: TriggerFetchChildrenAsync
public Zetbox.API.Async.ZbTask TriggerFetchChildrenAsync()
{
if (_triggerFetchChildrenTask != null) return _triggerFetchChildrenTask;
List<Zetbox.App.Test.MethodTest> serverList = null;
if (Helper.IsPersistedObject(this))
{
_triggerFetchChildrenTask = Context.GetListOfAsync<Zetbox.App.Test.MethodTest>(this, "Children")
.OnResult(t =>
{
serverList = t.Result;
});
}
else
{
_triggerFetchChildrenTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.Test.MethodTest>();
});
}
_triggerFetchChildrenTask.OnResult(t =>
{
_Children = new OneNRelationList<Zetbox.App.Test.MethodTest>(
"Parent",
null,
this,
OnChildrenCollectionChanged,
serverList);
});
return _triggerFetchChildrenTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:32,代码来源:MethodTest.Memory.Designer.cs
示例2: TriggerFetchNEndsAsync
public Zetbox.API.Async.ZbTask TriggerFetchNEndsAsync()
{
if (_triggerFetchNEndsTask != null) return _triggerFetchNEndsTask;
List<Zetbox.App.Test.OrderedNEnd> serverList = null;
if (Helper.IsPersistedObject(this))
{
_triggerFetchNEndsTask = Context.GetListOfAsync<Zetbox.App.Test.OrderedNEnd>(this, "NEnds")
.OnResult(t =>
{
serverList = t.Result;
});
}
else
{
_triggerFetchNEndsTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.Test.OrderedNEnd>();
});
}
_triggerFetchNEndsTask.OnResult(t =>
{
_NEnds = new OneNRelationList<Zetbox.App.Test.OrderedNEnd>(
"OneEnd",
"NEnds_pos",
this,
OnNEndsCollectionChanged,
serverList);
});
return _triggerFetchNEndsTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:32,代码来源:OrderedOneEnd.Memory.Designer.cs
示例3: TriggerFetchAccessControlListAsync
public Zetbox.API.Async.ZbTask TriggerFetchAccessControlListAsync()
{
if (_triggerFetchAccessControlListTask != null) return _triggerFetchAccessControlListTask;
List<Zetbox.App.Base.AccessControl> serverList = null;
if (Helper.IsPersistedObject(this))
{
_triggerFetchAccessControlListTask = Context.GetListOfAsync<Zetbox.App.Base.AccessControl>(this, "AccessControlList")
.OnResult(t =>
{
serverList = t.Result;
});
}
else
{
_triggerFetchAccessControlListTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.Base.AccessControl>();
});
}
_triggerFetchAccessControlListTask.OnResult(t =>
{
_AccessControlList = new OneNRelationList<Zetbox.App.Base.AccessControl>(
"ObjectClass",
null,
this,
OnAccessControlListCollectionChanged,
serverList);
});
return _triggerFetchAccessControlListTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:32,代码来源:ObjectClass.Memory.Designer.cs
示例4: TriggerFetchBSideAsync
public Zetbox.API.Async.ZbTask TriggerFetchBSideAsync()
{
if (_triggerFetchBSideTask != null) return _triggerFetchBSideTask;
_triggerFetchBSideTask = Context.FetchRelationAsync<Zetbox.App.Test.ASide_connectsTo_BSide_RelationEntryMemoryImpl>(new Guid("3555da6e-0e9b-4f7c-903e-a51f3cce7cd9"), RelationEndRole.A, this);
_triggerFetchBSideTask.OnResult(r =>
{
_BSide
= new ObservableBSideCollectionWrapper<Zetbox.App.Test.N_to_M_relations_A, Zetbox.App.Test.N_to_M_relations_B, Zetbox.App.Test.ASide_connectsTo_BSide_RelationEntryMemoryImpl, ICollection<Zetbox.App.Test.ASide_connectsTo_BSide_RelationEntryMemoryImpl>>(
this,
new RelationshipFilterASideCollection<Zetbox.App.Test.ASide_connectsTo_BSide_RelationEntryMemoryImpl>(this.Context, this));
// _BSide.CollectionChanged is managed by OnBSideCollectionChanged() and called from the RelationEntry
});
return _triggerFetchBSideTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:14,代码来源:N_to_M_relations_A.Memory.Designer.cs
示例5: TriggerFetchRelationsAsync
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;
}
开发者ID:daszat,项目名称:zetbox,代码行数:14,代码来源:RoleMembership.Memory.Designer.cs
示例6: TriggerFetchInputsAsync
public Zetbox.API.Async.ZbTask TriggerFetchInputsAsync()
{
if (_triggerFetchInputsTask != null) return _triggerFetchInputsTask;
if (!Inputs_was_eagerLoaded) _triggerFetchInputsTask = Context.FetchRelationAsync<Zetbox.App.Base.CalculatedReference_dependsOn_InputProperties_RelationEntryMemoryImpl>(new Guid("47595643-e8d0-48ef-82c7-2d24de8a784e"), RelationEndRole.A, this);
else _triggerFetchInputsTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, null);
_triggerFetchInputsTask.OnResult(r =>
{
_Inputs
= new ObservableBSideCollectionWrapper<Zetbox.App.Base.CalculatedObjectReferenceProperty, Zetbox.App.Base.Property, Zetbox.App.Base.CalculatedReference_dependsOn_InputProperties_RelationEntryMemoryImpl, ICollection<Zetbox.App.Base.CalculatedReference_dependsOn_InputProperties_RelationEntryMemoryImpl>>(
this,
new RelationshipFilterASideCollection<Zetbox.App.Base.CalculatedReference_dependsOn_InputProperties_RelationEntryMemoryImpl>(this.Context, this));
// _Inputs.CollectionChanged is managed by OnInputsCollectionChanged() and called from the RelationEntry
});
return _triggerFetchInputsTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:15,代码来源:CalculatedObjectReferenceProperty.Memory.Designer.cs
示例7: TriggerFetchAntwortenAsync
public Zetbox.API.Async.ZbTask TriggerFetchAntwortenAsync()
{
if (_triggerFetchAntwortenTask != null) return _triggerFetchAntwortenTask;
List<Zetbox.App.Test.Antwort> serverList = null;
if (Helper.IsPersistedObject(this))
{
if (AntwortenIds != null)
{
_triggerFetchAntwortenTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = AntwortenIds.Select(id => Context.Find<Zetbox.App.Test.Antwort>(id)).ToList();
AntwortenIds = null; // allow id list to be garbage collected
});
}
else
{
_triggerFetchAntwortenTask = Context.GetListOfAsync<Zetbox.App.Test.Antwort>(this, "Antworten")
.OnResult(t =>
{
serverList = t.Result;
});
}
}
else
{
_triggerFetchAntwortenTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.Test.Antwort>();
});
}
_triggerFetchAntwortenTask.OnResult(t =>
{
_Antworten = new OneNRelationList<Zetbox.App.Test.Antwort>(
"Fragebogen",
"gute_Antworten_pos",
this,
OnAntwortenCollectionChanged,
serverList);
});
return _triggerFetchAntwortenTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:43,代码来源:Fragebogen.Memory.Designer.cs
示例8: TriggerFetchCompoundObjectDefinitionAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.Base.CompoundObject> TriggerFetchCompoundObjectDefinitionAsync()
{
if (_triggerFetchCompoundObjectDefinitionTask != null) return _triggerFetchCompoundObjectDefinitionTask;
if (_fk_CompoundObjectDefinition.HasValue)
_triggerFetchCompoundObjectDefinitionTask = Context.FindAsync<Zetbox.App.Base.CompoundObject>(_fk_CompoundObjectDefinition.Value);
else
_triggerFetchCompoundObjectDefinitionTask = new Zetbox.API.Async.ZbTask<Zetbox.App.Base.CompoundObject>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchCompoundObjectDefinitionTask.OnResult(t =>
{
if (OnCompoundObjectDefinition_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.Base.CompoundObject>(t.Result);
OnCompoundObjectDefinition_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchCompoundObjectDefinitionTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:CompoundObjectProperty.Memory.Designer.cs
示例9: TriggerFetchBaseWorkScheduleAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.Calendar.WorkSchedule> TriggerFetchBaseWorkScheduleAsync()
{
if (_triggerFetchBaseWorkScheduleTask != null) return _triggerFetchBaseWorkScheduleTask;
if (_fk_BaseWorkSchedule.HasValue)
_triggerFetchBaseWorkScheduleTask = Context.FindAsync<Zetbox.App.Calendar.WorkSchedule>(_fk_BaseWorkSchedule.Value);
else
_triggerFetchBaseWorkScheduleTask = new Zetbox.API.Async.ZbTask<Zetbox.App.Calendar.WorkSchedule>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchBaseWorkScheduleTask.OnResult(t =>
{
if (OnBaseWorkSchedule_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.Calendar.WorkSchedule>(t.Result);
OnBaseWorkSchedule_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchBaseWorkScheduleTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:WorkSchedule.Memory.Designer.cs
示例10: TriggerFetchChangedByAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.Base.Identity> TriggerFetchChangedByAsync()
{
if (_triggerFetchChangedByTask != null) return _triggerFetchChangedByTask;
if (_fk_ChangedBy.HasValue)
_triggerFetchChangedByTask = Context.FindAsync<Zetbox.App.Base.Identity>(_fk_ChangedBy.Value);
else
_triggerFetchChangedByTask = new Zetbox.API.Async.ZbTask<Zetbox.App.Base.Identity>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchChangedByTask.OnResult(t =>
{
if (OnChangedBy_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.Base.Identity>(t.Result);
OnChangedBy_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchChangedByTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:Module.Memory.Designer.cs
示例11: TriggerFetchAParentAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.Base.Relation> TriggerFetchAParentAsync()
{
if (_triggerFetchAParentTask != null) return _triggerFetchAParentTask;
if (_fk_AParent.HasValue)
_triggerFetchAParentTask = Context.FindAsync<Zetbox.App.Base.Relation>(_fk_AParent.Value);
else
_triggerFetchAParentTask = new Zetbox.API.Async.ZbTask<Zetbox.App.Base.Relation>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchAParentTask.OnResult(t =>
{
if (OnAParent_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.Base.Relation>(t.Result);
OnAParent_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchAParentTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:RelationEnd.Memory.Designer.cs
示例12: TriggerFetchDefaultPropertyViewModelDescriptorAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.GUI.ViewModelDescriptor> TriggerFetchDefaultPropertyViewModelDescriptorAsync()
{
if (_triggerFetchDefaultPropertyViewModelDescriptorTask != null) return _triggerFetchDefaultPropertyViewModelDescriptorTask;
if (_fk_DefaultPropertyViewModelDescriptor.HasValue)
_triggerFetchDefaultPropertyViewModelDescriptorTask = Context.FindAsync<Zetbox.App.GUI.ViewModelDescriptor>(_fk_DefaultPropertyViewModelDescriptor.Value);
else
_triggerFetchDefaultPropertyViewModelDescriptorTask = new Zetbox.API.Async.ZbTask<Zetbox.App.GUI.ViewModelDescriptor>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchDefaultPropertyViewModelDescriptorTask.OnResult(t =>
{
if (OnDefaultPropertyViewModelDescriptor_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.GUI.ViewModelDescriptor>(t.Result);
OnDefaultPropertyViewModelDescriptor_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchDefaultPropertyViewModelDescriptorTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:CompoundObject.Memory.Designer.cs
示例13: TriggerFetchFileAsync
public Zetbox.API.Async.ZbTask<at.dasz.DocumentManagement.File> TriggerFetchFileAsync()
{
if (_triggerFetchFileTask != null) return _triggerFetchFileTask;
if (_fk_File.HasValue)
_triggerFetchFileTask = Context.FindAsync<at.dasz.DocumentManagement.File>(_fk_File.Value);
else
_triggerFetchFileTask = new Zetbox.API.Async.ZbTask<at.dasz.DocumentManagement.File>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchFileTask.OnResult(t =>
{
if (OnFile_Getter != null)
{
var e = new PropertyGetterEventArgs<at.dasz.DocumentManagement.File>(t.Result);
OnFile_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchFileTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:Excerpt.Memory.Designer.cs
示例14: TriggerFetchControlKindAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.GUI.ControlKind> TriggerFetchControlKindAsync()
{
if (_triggerFetchControlKindTask != null) return _triggerFetchControlKindTask;
if (_fk_ControlKind.HasValue)
_triggerFetchControlKindTask = Context.FindAsync<Zetbox.App.GUI.ControlKind>(_fk_ControlKind.Value);
else
_triggerFetchControlKindTask = new Zetbox.API.Async.ZbTask<Zetbox.App.GUI.ControlKind>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchControlKindTask.OnResult(t =>
{
if (OnControlKind_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.GUI.ControlKind>(t.Result);
OnControlKind_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchControlKindTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:ViewDescriptor.Memory.Designer.cs
示例15: TriggerFetchMemberAsync
public Zetbox.API.Async.ZbTask TriggerFetchMemberAsync()
{
if (_triggerFetchMemberTask != null) return _triggerFetchMemberTask;
_triggerFetchMemberTask = Context.FetchRelationAsync<Zetbox.App.Base.Identities_memberOf_Groups_RelationEntryMemoryImpl>(new Guid("3efb7ae8-ba6b-40e3-9482-b45d1c101743"), RelationEndRole.B, this);
_triggerFetchMemberTask.OnResult(r =>
{
_Member
= new ObservableASideCollectionWrapper<Zetbox.App.Base.Identity, Zetbox.App.Base.Group, Zetbox.App.Base.Identities_memberOf_Groups_RelationEntryMemoryImpl, ICollection<Zetbox.App.Base.Identities_memberOf_Groups_RelationEntryMemoryImpl>>(
this,
new RelationshipFilterBSideCollection<Zetbox.App.Base.Identities_memberOf_Groups_RelationEntryMemoryImpl>(this.Context, this));
// _Member.CollectionChanged is managed by OnMemberCollectionChanged() and called from the RelationEntry
});
return _triggerFetchMemberTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:14,代码来源:Group.Memory.Designer.cs
示例16: TriggerFetchWorkScheduleRulesAsync
public Zetbox.API.Async.ZbTask TriggerFetchWorkScheduleRulesAsync()
{
if (_triggerFetchWorkScheduleRulesTask != null) return _triggerFetchWorkScheduleRulesTask;
List<Zetbox.App.Calendar.WorkScheduleRule> serverList = null;
if (Helper.IsPersistedObject(this))
{
_triggerFetchWorkScheduleRulesTask = Context.GetListOfAsync<Zetbox.App.Calendar.WorkScheduleRule>(this, "WorkScheduleRules")
.OnResult(t =>
{
serverList = t.Result;
});
}
else
{
_triggerFetchWorkScheduleRulesTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.Calendar.WorkScheduleRule>();
});
}
_triggerFetchWorkScheduleRulesTask.OnResult(t =>
{
_WorkScheduleRules = new OneNRelationList<Zetbox.App.Calendar.WorkScheduleRule>(
"WorkSchedule",
null,
this,
OnWorkScheduleRulesCollectionChanged,
serverList);
});
return _triggerFetchWorkScheduleRulesTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:32,代码来源:WorkSchedule.Memory.Designer.cs
示例17: TriggerFetchParameterAsync
public Zetbox.API.Async.ZbTask TriggerFetchParameterAsync()
{
if (_triggerFetchParameterTask != null) return _triggerFetchParameterTask;
List<Zetbox.App.Base.BaseParameter> serverList = null;
if (Helper.IsPersistedObject(this))
{
_triggerFetchParameterTask = Context.GetListOfAsync<Zetbox.App.Base.BaseParameter>(this, "Parameter")
.OnResult(t =>
{
serverList = t.Result;
});
}
else
{
_triggerFetchParameterTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.Base.BaseParameter>();
});
}
_triggerFetchParameterTask.OnResult(t =>
{
_Parameter = new OneNRelationList<Zetbox.App.Base.BaseParameter>(
"Method",
"Parameter_pos",
this,
OnParameterCollectionChanged,
serverList);
});
return _triggerFetchParameterTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:32,代码来源:Method.Memory.Designer.cs
示例18: TriggerFetchEnumEntriesAsync
public Zetbox.API.Async.ZbTask TriggerFetchEnumEntriesAsync()
{
if (_triggerFetchEnumEntriesTask != null) return _triggerFetchEnumEntriesTask;
List<Zetbox.App.SchemaMigration.SourceEnum> serverList = null;
if (Helper.IsPersistedObject(this))
{
_triggerFetchEnumEntriesTask = Context.GetListOfAsync<Zetbox.App.SchemaMigration.SourceEnum>(this, "EnumEntries")
.OnResult(t =>
{
serverList = t.Result;
});
}
else
{
_triggerFetchEnumEntriesTask = new Zetbox.API.Async.ZbTask(Zetbox.API.Async.ZbTask.Synchron, () =>
{
serverList = new List<Zetbox.App.SchemaMigration.SourceEnum>();
});
}
_triggerFetchEnumEntriesTask.OnResult(t =>
{
_EnumEntries = new OneNRelationList<Zetbox.App.SchemaMigration.SourceEnum>(
"SourceColumn",
null,
this,
OnEnumEntriesCollectionChanged,
serverList);
});
return _triggerFetchEnumEntriesTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:32,代码来源:SourceColumn.Memory.Designer.cs
示例19: TriggerFetchShowByPropertiesAsync
public Zetbox.API.Async.ZbTask TriggerFetchShowByPropertiesAsync()
{
if (_triggerFetchShowByPropertiesTask != null) return _triggerFetchShowByPropertiesTask;
_triggerFetchShowByPropertiesTask = Context.FetchRelationAsync<Zetbox.App.GUI.ObjRefProp_shows_Methods_RelationEntryMemoryImpl>(new Guid("02b3e9d5-fc2e-4ffe-8867-0977b88437cc"), RelationEndRole.B, this);
_triggerFetchShowByPropertiesTask.OnResult(r =>
{
_ShowByProperties
= new ObservableASideCollectionWrapper<Zetbox.App.Base.ObjectReferenceProperty, Zetbox.App.Base.Method, Zetbox.App.GUI.ObjRefProp_shows_Methods_RelationEntryMemoryImpl, ICollection<Zetbox.App.GUI.ObjRefProp_shows_Methods_RelationEntryMemoryImpl>>(
this,
new RelationshipFilterBSideCollection<Zetbox.App.GUI.ObjRefProp_shows_Methods_RelationEntryMemoryImpl>(this.Context, this));
// _ShowByProperties.CollectionChanged is managed by OnShowByPropertiesCollectionChanged() and called from the RelationEntry
});
return _triggerFetchShowByPropertiesTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:14,代码来源:Method.Memory.Designer.cs
示例20: TriggerFetchSourceTableAsync
public Zetbox.API.Async.ZbTask<Zetbox.App.SchemaMigration.SourceTable> TriggerFetchSourceTableAsync()
{
if (_triggerFetchSourceTableTask != null) return _triggerFetchSourceTableTask;
if (_fk_SourceTable.HasValue)
_triggerFetchSourceTableTask = Context.FindAsync<Zetbox.App.SchemaMigration.SourceTable>(_fk_SourceTable.Value);
else
_triggerFetchSourceTableTask = new Zetbox.API.Async.ZbTask<Zetbox.App.SchemaMigration.SourceTable>(Zetbox.API.Async.ZbTask.Synchron, () => null);
_triggerFetchSourceTableTask.OnResult(t =>
{
if (OnSourceTable_Getter != null)
{
var e = new PropertyGetterEventArgs<Zetbox.App.SchemaMigration.SourceTable>(t.Result);
OnSourceTable_Getter(this, e);
t.Result = e.Result;
}
});
return _triggerFetchSourceTableTask;
}
开发者ID:daszat,项目名称:zetbox,代码行数:21,代码来源:SourceColumn.Memory.Designer.cs
注:本文中的Zetbox.API.Async.ZbTask类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论