Click or drag to resize
ItemExtensionsLazyMapT Method
Maps an item to a new object. If there are properties which couldn't be found during the initial mapping, the method will query the database and run the mapper again with the database results

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static T LazyMap<T>(
	this IReadOnlyItem item,
	IConnection conn,
	Func<IReadOnlyItem, T> mapper
)

Parameters

item
Type: Innovator.ClientIReadOnlyItem
conn
Type: Innovator.ClientIConnection
mapper
Type: SystemFuncIReadOnlyItem, T
Function which creates a new object by referencing values from the item

Type Parameters

T

Return Value

Type: T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyItem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also