InsertAndReturnId(T) Method (T, CacheSettings)

SimpleEssentials

IDbProvider..::..InsertAndReturnId<(Of <(<'T>)>)> Method (T, CacheSettings)

Inserts an object into a table and then return its ID.

Namespace:  SimpleEssentials.DataProvider
Assembly:  SimpleEssentials (in SimpleEssentials.dll)

Syntax


int InsertAndReturnId<T>(
	T data,
	CacheSettings cacheSettings
)
Function InsertAndReturnId(Of T) ( _
	data As T, _
	cacheSettings As CacheSettings _
) As Integer
generic<typename T>
int^ InsertAndReturnId(
	T data, 
	CacheSettings^ cacheSettings
)

Type Parameters

T

Parameters

data
Type: T
The data.
cacheSettings
Type: SimpleEssentials.Cache..::..CacheSettings
The cache settings.

Return Value

ID of the newly inserted row