Allows the implementation of a descriptive object. A descriptive object is an object that has a code or ID and a name or description, used to typify another object or objects.
Description metadata for this type.
public DescriptiveDataModelDescriptor TypeDescriptor { get; }
Create a new item.
public Task<IDescriptiveDataModel> AddAsync(code, description)
Returns the newly created item.
Name | Type | Summary |
---|---|---|
code | String | Item code. |
description | String | Item description. |
Create or modify the descriptive object.
public Task<IDescriptiveDataModel> EditAsync(code, description)
Returns the edited item.
Name | Type | Summary |
---|---|---|
code | String | Item code. |
description | String | Item description. |
Returns a filtered list of items.
public Task FilterAsync(query, take)
Name | Type | Summary |
---|---|---|
query | String | Filter criteria. |
take | Int32 | Maximum amount of objects to retrieve. |
Gets the item code.
public String GetCode()
Gets the item description.
public String GetDescription()
Removes an item from the underlaying repository.
public Task<IDescriptiveDataModel> RemoveAsync(code)
Returns the removed item.
Name | Type | Summary |
---|---|---|
code | String | Item code. |
In this document