Ninja Database Pro
Load Method



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class : Load Method
Load an object from the database. The object must have a primary key property of Id or ObjectNameId as a type of long or an exception will be thrown. Example primary key: CustomerId If there is nothing found, null is returned.
Overload List
OverloadDescription
Load an object from the database. The object must have a primary key property of Id or ObjectNameId as a type of long or an exception will be thrown. Example primary key: CustomerId If there is nothing found, null is returned.  
Load an object from the database with the specified type. The object must have a primary key property of Id or ObjectNameId as a type of long or an exception will be thrown. Example primary key: CustomerId If there is nothing found, null is returned.  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NinjaDbPro Class
NinjaDbPro Members