Warning:
Fauna is decommissioning FQL v4 on June 30, 2025.

This driver is not compatible with FQL v10, the latest version. Fauna accounts created after August 21, 2024 must use FQL v10.
Ensure you migrate existing projects to the official v10 driver by the v4 EOL date: https://github.com/fauna/fauna-dotnet.

For more information, see the v4 end of life (EOL) announcement and related FAQ.

Fauna csharp driver  4.2.0
FaunaDB.Types.FaunaString Class Reference

Instruct the encoder that this object should be treated as a string when stored in Fauna. The Encoder will call the object or primative type's .ToString() method. The Decoder will attempt to create an object with the constructor with a single string parameter. If it does not have that constructor the Decoder will fail. For primatives the Decoder will attempt to use standard system conversions to convert the string back to the primative type. More...

Inheritance diagram for FaunaDB.Types.FaunaString:

Detailed Description

Instruct the encoder that this object should be treated as a string when stored in Fauna. The Encoder will call the object or primative type's .ToString() method. The Decoder will attempt to create an object with the constructor with a single string parameter. If it does not have that constructor the Decoder will fail. For primatives the Decoder will attempt to use standard system conversions to convert the string back to the primative type.

class Website { [FaunaString] public Uri MyLink { get; set; } }

var web = new Website { MyLink = new Uri("http://fauanadb.com") };

var encodedWebsite = Encoder.Encode(web);

Definition at line 117 of file Attributes.cs.


The documentation for this class was generated from the following file: