Get entity from datasource by entity id.

Namespace: MonoSoftware.MonoX
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public T GetEntityFromDataSourceById<T>(
	Guid entityId
)
Visual Basic
Public Function GetEntityFromDataSourceById(Of T) ( 
	entityId As Guid
) As T
Visual C++
public:
generic<typename T>
T GetEntityFromDataSourceById(
	Guid entityId
)
F#
member GetEntityFromDataSourceById : 
        entityId : Guid -> 'T 

Parameters

entityId
Type: System..::..Guid
Entity id

Type Parameters

T
Type of the entity to return

Return Value

Type: T
If datasource contains specified id entity is returned, otherwise null

See Also