Class FirestorePropertyAttribute
Attribute indicating that a property should be included in Firestore conversions.
Inherited Members
Namespace: Google.Cloud.Firestore
Assembly: Google.Cloud.Firestore.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class FirestorePropertyAttribute : Attribute
Constructors
FirestorePropertyAttribute()
Creates an instance with no specified name.
Declaration
public FirestorePropertyAttribute()
FirestorePropertyAttribute(string)
Creates an instance with the specified name.
Declaration
public FirestorePropertyAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name to use within the Firestore document. |
Properties
ConverterType
A custom converter type to use for the attributed property.
Declaration
public Type ConverterType { get; set; }
Property Value
Type | Description |
---|---|
Type |
Name
The name to use within the Firestore document. If not set, the name of the property is used directly.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |