Show / Hide Table of Contents

Interface IValidationContext

Context for a server method which is used on before add or update of an item.

Inherited Members
IContext.Conn
Namespace: Innovator.Server
Assembly: Innovator.Client.dll
Syntax
public interface IValidationContext : IContext

Properties

| Improve this Doc View Source

ErrorBuilder

Error builder which captures any errors which are encountered

Declaration
IErrorBuilder ErrorBuilder { get; }
Property Value
Type Description
IErrorBuilder
| Improve this Doc View Source

Exception

Get the exception object created for any errors that have happened so far.

Declaration
Exception Exception { get; }
Property Value
Type Description
System.Exception
| Improve this Doc View Source

Existing

Get the existing item in the database

Declaration
IReadOnlyItem Existing { get; }
Property Value
Type Description
IReadOnlyItem
| Improve this Doc View Source

IsNew

Indicates if the argument is new (not in the database)

Declaration
bool IsNew { get; }
Property Value
Type Description
System.Boolean

true if the item is not in the database, false otherwise

| Improve this Doc View Source

Item

The changes given to the database. This object should be modified to make any additional changes

Declaration
IItem Item { get; }
Property Value
Type Description
IItem
| Improve this Doc View Source

Merged

Gets an item which represents the new item after the changes are applied

Declaration
IReadOnlyItem Merged { get; }
Property Value
Type Description
IReadOnlyItem
| Improve this Doc View Source

QueryDefaults

Method for modifying the query to get existing items

Declaration
Action<IItem> QueryDefaults { get; set; }
Property Value
Type Description
System.Action<IItem>

Methods

| Improve this Doc View Source

IsBeingSetNull(String)

Indicates if a property is being set null. Note that this does not detect if the property already is null.

Declaration
bool IsBeingSetNull(string name)
Parameters
Type Name Description
System.String name

The name of the property to check

Returns
Type Description
System.Boolean

true if a non-null property is being set null with this query, false otherwise

| Improve this Doc View Source

IsChanging(String[])

Indicates if one or more properties in the list are changing

Declaration
bool IsChanging(params string[] names)
Parameters
Type Name Description
System.String[] names

Property name(s)

Returns
Type Description
System.Boolean

true if at least one of the properties is being changed with this query, false otherwise

| Improve this Doc View Source

NewOrExisting(String)

Gets a property from the Item item (if it exists). Otherwise, the property from Existing is returned

Declaration
IReadOnlyProperty NewOrExisting(string name)
Parameters
Type Name Description
System.String name

Name of the property to retrieve

Returns
Type Description
IReadOnlyProperty

The IReadOnlyProperty from the incoming query (if defined). Otherwise, the IReadOnlyProperty from the database data

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX