IBank Load Method (Type, GDID, Object, DataVeracity, DataCaching, Nullable Int32 , ISession)NFX Class Library

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

Loads parcel by fetching it from the bank backened by its primary id

Namespace: NFX.DataAccess.Distributed
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

Parcel Load(
	Type tParcel,
	GDID id,
	Object shardingID = null,
	DataVeracity veracity = DataVeracity.Maximum,
	DataCaching cacheOpt = DataCaching.LatestData,
	Nullable<int> cacheMaxAgeSec = null,
	ISession session = null
)

Parameters

tParcel
Type: OnlineSystem Type
Parcel type to load
id
Type: NFX.DataAccess.Distributed GDID
The unique GDID of the parcel
shardingID (Optional)
Type: OnlineSystem Object
The ID of the entity used for sharding, i.e. a message may use ID of the item that the message relates to, so messages get sharded in the same location as their "parent" record. The parcel type T specifies the DataParcelAttirbute.GetParcelAttr(typeof(T)).ShardingParcel
veracity (Optional)
Type: NFX.DataAccess.Distributed DataVeracity
The level of data veracity
cacheOpt (Optional)
Type: NFX.DataAccess.Distributed DataCaching
The cache control options
cacheMaxAgeSec (Optional)
Type: OnlineSystem Nullable OnlineInt32 
The maximum acceptable age of cached instance, cached data will be re-queried from backend if it is older
session (Optional)
Type: NFX.ApplicationModel ISession
User session, if null session will be taken from execution context. The session may be needed for policy filtering

Return Value

Type: Parcel
See Also