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.FaunaConstructorAttribute Class Reference

Instruct the decoder wich constructor to use when decoding a object. It can also be used in a public static method instead in a constructor. That attribute can only be used once per class. More...

Inheritance diagram for FaunaDB.Types.FaunaConstructorAttribute:

Detailed Description

Instruct the decoder wich constructor to use when decoding a object. It can also be used in a public static method instead in a constructor. That attribute can only be used once per class.

class Product { public string Description { get; set; } public double Price { get; set; }

[FaunaConstructor] public Product(string description, double price) { Description = description; Price = price; } }

class Order { public string Number { get; set; } public List<Product> Products { get; set; }

[FaunaConstructor] public static Order CreateOrder(string number, List<Product> products) { return new Order { Number = number, Products = products } } }

Definition at line 181 of file Attributes.cs.


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