Relatude Help

Read

var byGuid = db.Get<IVenue>(venueId);
var byInt  = db.Get<IVenue>(1234);                     // internal int id
var many   = db.Get<IVenue>(new[] { id1, id2 });
var nb     = db.Get<IVenue>(venueId, "nb-NO");         // in a specific culture

if (db.TryGet<IVenue>(venueId, out var maybe)) { … }    // no throw
bool exists = db.Exists<IVenue>(venueId);

var fresh = db.Get(venue);                              // read a node object again

long total  = db.Count();
long venues = db.Count<IVenue>();

Get throws when the id is missing or the node is not a T; TryGet returns false. A node whose type inherits from T counts as a T. A read by id applies the store's culture but not its read access. To find out what a user may read, use a query (chapter 29).