Fauna v10 .NET/C# Driver 0.2.0-beta
 
Loading...
Searching...
No Matches
Document.cs
Go to the documentation of this file.
1namespace Fauna.Types;
2
6public sealed class Document : BaseDocument
7{
8
12 public string Id { get; }
13
20 public Document(string id, Module coll, DateTime ts) : base(coll, ts)
21 {
22 Id = id;
23 }
24
33 public Document(string id, Module coll, DateTime ts, Dictionary<string, object?> data) : base(coll, ts, data)
34 {
35 Id = id;
36 }
37}
Represents the base structure of a document.
Represents a document.
Definition Document.cs:7
string Id
Gets the string value of the document id.
Definition Document.cs:12
Document(string id, Module coll, DateTime ts, Dictionary< string, object?> data)
Initializes a new instance of the Document class with the specified id, coll, ts, and additional data...
Definition Document.cs:33
Document(string id, Module coll, DateTime ts)
Initializes a new instance of the Document class with the specified id, coll, and ts.
Definition Document.cs:20
Represents a module, a singleton object grouping related functionalities. Modules are serialized as @...
Definition Module.cs:8