Custom PageModel for CSLA .NET More...
Public Member Functions | |
PageModel (ApplicationContext applicationContext) | |
Creates an instance of the type. More... | |
async Task< bool > | SaveAsync (bool forceUpdate=false) |
Save the Item More... | |
PropertyInfo | GetPropertyInfo (string propertyName) |
Get a PropertyInfo object for a property of the Model. More... | |
bool | CanCreateItem () |
Gets a value indicating whether the current user is authorized to create an instance of the business domain type More... | |
bool | CanGetItem () |
Gets a value indicating whether the current user is authorized to retrieve an instance of the business domain type More... | |
bool | CanEditItem () |
Gets a value indicating whether the current user is authorized to edit/save an instance of the business domain type More... | |
bool | CanDeleteItem () |
Gets a value indicating whether the current user is authorized to delete an instance of the business domain type More... | |
Properties | |
T | Item [getset] |
Gets or sets the business domain model object. More... | |
Custom PageModel for CSLA .NET
T | : | ISavable |
Definition at line 22 of file PageModel.cs.
Csla.AspNetCore.RazorPages.PageModel< T >.PageModel | ( | ApplicationContext | applicationContext | ) |
Creates an instance of the type.
Definition at line 30 of file PageModel.cs.
bool Csla.AspNetCore.RazorPages.PageModel< T >.CanCreateItem | ( | ) |
Gets a value indicating whether the current user is authorized to create an instance of the business domain type
Definition at line 128 of file PageModel.cs.
bool Csla.AspNetCore.RazorPages.PageModel< T >.CanDeleteItem | ( | ) |
Gets a value indicating whether the current user is authorized to delete an instance of the business domain type
Definition at line 161 of file PageModel.cs.
bool Csla.AspNetCore.RazorPages.PageModel< T >.CanEditItem | ( | ) |
Gets a value indicating whether the current user is authorized to edit/save an instance of the business domain type
Definition at line 150 of file PageModel.cs.
bool Csla.AspNetCore.RazorPages.PageModel< T >.CanGetItem | ( | ) |
Gets a value indicating whether the current user is authorized to retrieve an instance of the business domain type
Definition at line 139 of file PageModel.cs.
PropertyInfo Csla.AspNetCore.RazorPages.PageModel< T >.GetPropertyInfo | ( | string | propertyName | ) |
Get a PropertyInfo object for a property of the Model.
PropertyInfo provides access to the metastate of the property.
propertyName | Property name |
Definition at line 112 of file PageModel.cs.
async Task< bool > Csla.AspNetCore.RazorPages.PageModel< T >.SaveAsync | ( | bool | forceUpdate = false | ) |
Save the Item
forceUpdate | Indicates whether an update operation should be forced. |
Definition at line 46 of file PageModel.cs.
|
getset |
Gets or sets the business domain model object.
Definition at line 39 of file PageModel.cs.