CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.AspNetCore.RazorPages.PageModel< T > Class Template Reference

Custom PageModel for CSLA .NET More...

Inheritance diagram for Csla.AspNetCore.RazorPages.PageModel< T >:

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

Item [getset]
 Gets or sets the business domain model object. More...
 

Detailed Description

Custom PageModel for CSLA .NET

Type Constraints
T :ISavable 

Definition at line 22 of file PageModel.cs.

Constructor & Destructor Documentation

◆ PageModel()

Creates an instance of the type.

Definition at line 30 of file PageModel.cs.

Member Function Documentation

◆ CanCreateItem()

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

Returns

Definition at line 128 of file PageModel.cs.

◆ CanDeleteItem()

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

Returns

Definition at line 161 of file PageModel.cs.

◆ CanEditItem()

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

Returns

Definition at line 150 of file PageModel.cs.

◆ CanGetItem()

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

Returns

Definition at line 139 of file PageModel.cs.

◆ GetPropertyInfo()

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.

Parameters
propertyNameProperty name
Returns

Definition at line 112 of file PageModel.cs.

◆ SaveAsync()

async Task< bool > Csla.AspNetCore.RazorPages.PageModel< T >.SaveAsync ( bool  forceUpdate = false)

Save the Item

Parameters
forceUpdateIndicates whether an update operation should be forced.
Returns
True if the save operation succeeds

Definition at line 46 of file PageModel.cs.

Property Documentation

◆ Item

Gets or sets the business domain model object.

Definition at line 39 of file PageModel.cs.