CSLA.NET 5.4.2
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

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...
 

Static Public Member Functions

static bool CanCreateItem ()
 Gets a value indicating whether the current user is authorized to create an instance of the business domain type More...
 
static bool CanGetItem ()
 Gets a value indicating whether the current user is authorized to retrieve an instance of the business domain type More...
 
static bool CanEditItem ()
 Gets a value indicating whether the current user is authorized to edit/save an instance of the business domain type More...
 
static 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 23 of file PageModel.cs.

Member Function Documentation

◆ CanCreateItem()

static bool Csla.AspNetCore.RazorPages.PageModel< T >.CanCreateItem ( )
static

Gets a value indicating whether the current user is authorized to create an instance of the business domain type

Returns

Definition at line 117 of file PageModel.cs.

◆ CanDeleteItem()

static bool Csla.AspNetCore.RazorPages.PageModel< T >.CanDeleteItem ( )
static

Gets a value indicating whether the current user is authorized to delete an instance of the business domain type

Returns

Definition at line 150 of file PageModel.cs.

◆ CanEditItem()

static bool Csla.AspNetCore.RazorPages.PageModel< T >.CanEditItem ( )
static

Gets a value indicating whether the current user is authorized to edit/save an instance of the business domain type

Returns

Definition at line 139 of file PageModel.cs.

◆ CanGetItem()

static bool Csla.AspNetCore.RazorPages.PageModel< T >.CanGetItem ( )
static

Gets a value indicating whether the current user is authorized to retrieve an instance of the business domain type

Returns

Definition at line 128 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 101 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 37 of file PageModel.cs.

Property Documentation

◆ Item

Gets or sets the business domain model object.

Definition at line 30 of file PageModel.cs.