Class FirestorePropertyAttribute (3.0.0)

[AttributeUsage(AttributeTargets.Property)]
public sealed class FirestorePropertyAttribute : Attribute

Attribute indicating that a property should be included in Firestore conversions.

Inheritance

Object > Attribute > FirestorePropertyAttribute

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Constructors

FirestorePropertyAttribute()

public FirestorePropertyAttribute()

Creates an instance with no specified name.

FirestorePropertyAttribute(String)

public FirestorePropertyAttribute(string name)

Creates an instance with the specified name.

Parameter
NameDescription
nameString

The name to use within the Firestore document.

Properties

ConverterType

public Type ConverterType { get; set; }

A custom converter type to use for the attributed property.

Property Value
TypeDescription
Type

Name

public string Name { get; set; }

The name to use within the Firestore document. If not set, the name of the property is used directly.

Property Value
TypeDescription
String