Click or drag to resize
ICreateableWithCompanyTCreate Method

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

Creates a new instance of the entity on the specified company

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

Parameters

dto
Type: T
The entity to create
companyId
Type: SystemInt64
The company id

Return Value

Type: Int64
The database Id of the newly created instance
Exceptions
ExceptionCondition
ArgumentExceptionThrown if the for company id identifier is invalid
InvalidIdentifierExceptionThrown if an identifier is zero or lower
ValueIsRequiredExceptionThrown if a value is missing but is required.
NonUniqueValueExceptionThrown if a value is required to be unique, but is not
See Also