15 public string Id {
get; }
65 public Ref(
string id,
Module col,
string cause) : base(col, cause)
76 public Ref(
string id,
Module col, T doc) : base(col, doc)
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.
string Id
Gets the string value of the ref ID.
Ref(string id, Module col, T doc)
Initializes a new instance of a loaded Ref<T> class.
Ref(string id, DataContext.ICollection col)
Initializes a new instance of an unloaded Ref<T> class.
Ref(string id, DataContext.ICollection col, string cause)
Initializes a new instance of a loaded and non-existent Ref<T> class.
Ref(string id, DataContext.ICollection col, T doc)
Initializes a new instance of a loaded Ref<T> class.
Ref(string id, Module col, string cause)
Initializes a new instance of a loaded and non-existent Ref<T> class.
Ref(string id, Module col)
Initializes a new instance of an unloaded Ref<T> class.
An interface for a Fauna collection within a DataContext.