Click or drag to resize
ICreateableTCreate Method

[This is preliminary documentation and is subject to change.]

Creates a new instance of the entity

Namespace: Netadmin.Management.Common.Core
Assembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
long Create(
	T dto
)

Parameters

dto
Type: T
The entity to create. Id should be 0

Return Value

Type: Int64
The database Id of the newly created instance
Exceptions
ExceptionCondition
ValueIsRequiredExceptionThrown if a value is missing but is required.
NonUniqueValueExceptionThrown if a value is required to be unique, but is not
ObjectNotFoundExceptionThrown if any reference is not found.
ArgumentNullExceptiondto is .
See Also