10using System.Threading.Tasks;
35 get {
return GetProperty<string>(DataProperty); }
36 set { SetProperty<string>(DataProperty, value); }
42 get {
return GetProperty<string>(RootDataProperty); }
43 set { SetProperty<string>(RootDataProperty, value); }
49 get {
return GetProperty(StatusProperty); }
53 private async Task CreateAsync()
56 LoadProperty(StatusProperty,
"Created");
60 private async Task FetchAsync()
63 LoadProperty(StatusProperty,
"Fetched");
67 private async Task InsertAsync()
70 LoadProperty(StatusProperty,
"Inserted");
74 private async Task UpdateAsync()
77 LoadProperty(StatusProperty,
"Updated");
81 private async Task DeleteSelfAsync()
84 LoadProperty(StatusProperty,
"Deleted");
This is the base class from which most business objects will be derived.
Maintains metadata about a property.
static async Task< Child > NewChildAsync(IChildDataPortal< Child > childDataPortal)
static async Task< Child > GetChildAsync(IChildDataPortal< Child > childDataPortal)
Interface defining the members of the child data portal type.
Task< object > FetchChildAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
Task< object > CreateChildAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
@ Serializable
Prevents updating or inserting until the transaction is complete.