get

Get an entity using a primary key, if the id is not found this method returns null. You can also pass an id = 0 and the service will return to you a new entity.

No casting is necessary on the Id value type as we do this automatically for you.

Returns

  • This function returns any

Arguments

Examples

var account = ormService.get("Account",1);
var account = ormService.get("Account",4);

var newAccount = ormService.get("Account",0);

Last updated