Table of Contents

Method Set

Namespace
Sisk.Core.Entity
Assembly
Sisk.Core.dll

Set<T>()

Creates and adds an singleton of T in this context bag.

public T Set<T>() where T : notnull, new()

Returns

T

Type Parameters

T

The object that will be defined in this context bag.

Set<T>(T)

Adds an singleton of T in this context bag.

public T Set<T>(T value) where T : notnull

Parameters

value T

The instance of T which will be defined in this context bag.

Returns

T

Type Parameters

T

The object that will be defined in this context bag.