RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

DbMaintenanceViewModel<(Of <(<'TEntity>)>)> Methods

The DbMaintenanceViewModel<(Of <(<'TEntity>)>)> type exposes the following members.

Methods


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