Fauna v10 .NET/C# Driver 0.2.0-beta
 
Loading...
Searching...
No Matches
NullableDocument.cs
Go to the documentation of this file.
1namespace Fauna.Types;
2
8public abstract class NullableDocument<T>
9{
13 public T? Value { get; }
14
15 public NullableDocument(T? value)
16 {
17 Value = value;
18 }
19}
20
25public class NullDocument<T> : NullableDocument<T>
26{
30 public string Id { get; }
31
35 public Module Collection { get; }
36
40 public string Cause { get; }
41
42 public NullDocument(string id, Module collection, string cause) : base(default)
43 {
44 Id = id;
45 Collection = collection;
46 Cause = cause;
47 }
48}
49
50
56{
57 public NonNullDocument(T value) : base(value)
58 {
59 }
60}
Represents a module, a singleton object grouping related functionalities. Modules are serialized as @...
Definition Module.cs:8
A class wrapping a non-null document returned by Fauna.
A class representing a null document returned by Fauna.
NullDocument(string id, Module collection, string cause)
string Cause
The Cause for the null document.
string Id
The ID of the null document.
Module Collection
The Collection.
A wrapper class that allows Document and user-defined classes to be null references.