DbMaintenanceViewModel<(Of <(<'TEntity>)>)> Methods
The DbMaintenanceViewModel<(Of <(<'TEntity>)>)> type exposes the following members.
Methods
Name | Description | |
---|---|---|
ChangeSortColumn |
Changes the sort column.
|
|
CheckDirty |
Checks the dirty.
|
|
CheckKeyValueTextChanged |
Checks the key value text changed.
|
|
CheckSaveDeleted |
Checks the save deleted.
|
|
ClearData |
Clears the data.
|
|
ConfirmDeleteMessage |
Gets the confirm delete message. Override this for localization.
|
|
DeleteChildren |
Deletes the children.
|
|
DeleteEntity |
Deletes the entity.
|
|
DoDelete |
Called when the Delete button is clicked.
|
|
DoSave |
Called when the Save button is clicked.
|
|
ExecuteAddModifyCommand |
Attempts top save the record if in add mode and returns that result. Execute this method prior to sending the AddModify LookupCommand.
|
|
GetAddViewFilter |
Gets the add view filter.
|
|
GetAddViewPrimaryKeyValue |
Gets the add view primary key value.
|
|
GetAutoFillValueForNullableForeignKeyField |
Override this to get the auto fill value for a nullable foreign key field. Used by validation. If the returned value has text but not a valid PrimaryKeyValue then it will fail validation.
|
|
GetEntityData |
Gets the entity data.
|
|
GetEntityFromDb |
Gets the entity from database.
|
|
GetLookupCommand |
Creates and returns a LookupCommand. The primaryKeyValue argument must be passed in if this view model does not set the KeyAutoFillValue property.
|
|
GetVmPrimaryKeyValue |
Gets the vm primary key value.
|
|
Initialize |
Initializes this instance. Executed after the view is loaded.
|
|
InitializeFromLookupData |
Initializes from lookup data that is sent when the user wishes to add/view lookup data on the fly.
|
|
InternalInitialize |
Internals the initialize.
|
|
LoadFromEntity |
Loads this view model from the entity generated from PopulatePrimaryKeyControls. This is executed only during record retrieval operations.
|
|
OnDeletedRelatedTables |
Called when [deleted related tables].
|
|
OnFindButton |
Called when the Find button is clicked.
|
|
OnGotoNextButton |
Called when Next button is clicked.
|
|
OnGotoPreviousButton |
Called when Previous button is clicked.
|
|
OnKeyControlLeave |
Called when the key control looses focus. Used to ensure no duplicate value in the key control is entered.
|
|
OnNewButton |
Called when the New button is clicked.
|
|
OnPropertyChanged |
Called when a property value has changed.
|
|
OnRecordDirtyChanged |
Called when [record dirty changed].
|
|
OnRecordSelected(LookupSelectArgs) |
Called when [record selected].
|
|
OnRecordSelected(PrimaryKeyValue) |
Called when [record selected].
|
|
OnSelectButton |
Called when the Select button is clicked.
|
|
OnTablesDeleted |
Called when [tables deleted].
|
|
OnValidationFail |
Called when [validation fail].
|
|
OnViewModelOperationPreview |
Called when [view model operation preview].
|
|
OnWindowClosing |
called when the user is trying to close the view.
|
|
PopulatePrimaryKeyControls |
Populates the primary key controls. This is executed during record save and retrieval operations.
|
|
RegisterGrid |
Registers the grid.
|
|
RenameKeyAutoFillValueMessage |
This is the message that will show when the user tries to rename a record's unique key AutoFillValue. Checks to see if the user really wants to rename an existing record or create a new record instead. Override this for localization.
|
|
SaveEntity |
Saves the entity.
|
|
SaveHeader |
Saves the header.
|
|
SelectPrimaryKey |
Loads a record into the view model for the PrimaryKeyValue argument.
|
|
SetLookupIndex |
Sets the index of the lookup.
|
|
SetupViewLookupDefinition |
Setups the view lookup definition.
|
|
UnitTestGetEntityData |
Units the test get entity data.
|
|
UnitTestLoadFromEntity |
Units the test load from entity.
|
|
ValidateEntity |
Validates the entity.
|
|
ValidateEntityProperty |
Validates the entity property.
|