Fauna csharp driver  4.2.0
FaunaDB.Types.FaunaIgnoreAttribute Class Reference

Instruct the encoder to not encode the specified member. More...

Inheritance diagram for FaunaDB.Types.FaunaIgnoreAttribute:

Detailed Description

Instruct the encoder to not encode the specified member.

class User { [FaunaField("user_name")] public string UserName { get; set; }

[FaunaIgnore] public string Password { get; set; } }

var user = new User { UserName = "john", Password = "s3cr3t" };

var encoded = Encoder.Encode(user);

//encoded will be equivalent to:

ObjectV.With("user_name", "john")

Definition at line 142 of file Attributes.cs.


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