16 public string Name {
get; }
85 public override T
Get()
87 if (!
IsLoaded)
throw new UnloadedRefException();
An exception representing a case when a document cannot be materialized because it does not exist.
An abstract class representing a DataContext. This is a special type of Fauna client that can be used...
An abstract class representing a reference that can wrap an instance of the referenced document.
readonly? T Doc
Gets the materialized document represented by the Ref. Is null unless IsLoaded is true and Exists is ...
string? Cause
Gets the cause when exists is false. Is null unless IsLoaded is true and Exists is false.
bool IsLoaded
Gets a boolean indicating whether the document represented by the ref has been loaded.
Module Collection
Gets the collection to which the ref belongs.
bool? Exists
Gets a boolean indicating whether the doc exists. Is null unless IsLoaded is true.
Represents a module, a singleton object grouping related functionalities. Modules are serialized as @...
Represents a document ref that has a "name" instead of an "id". For example, a Role document referenc...
string Name
Gets the string value of the ref name.
NamedRef(string name, Module col, T doc)
Initializes a new instance of a loaded NamedRef<T> class.
NamedRef(string name, DataContext.ICollection col, string cause)
Initializes a new instance of a loaded and non-existent NamedRef<T> class.
NamedRef(string name, Module col)
Initializes a new instance of an unloaded NamedRef<T> class.
NamedRef(string name, DataContext.ICollection col)
Initializes a new instance of an unloaded NamedRef<T> class.
NamedRef(string name, Module col, string cause)
Initializes a new instance of a loaded and non-existent NamedRef<T> class.
NamedRef(string name, DataContext.ICollection col, T doc)
Initializes a new instance of a loaded NamedRef<T> class.
An interface for a Fauna collection within a DataContext.