# GenerateSerializerAttribute Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/)

## GenerateFieldIds {#generatefieldids-6458fecf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/properties/generatefieldids-6458fecf/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/Annotations.cs)

```csharp
public GenerateFieldIds GenerateFieldIds
```

Get or sets when Orleans should auto-assign field ids. The default behavior is to not auto-assign field ids.

## IncludePrimaryConstructorParameters {#includeprimaryconstructorparameters-bfe59099}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/properties/includeprimaryconstructorparameters-bfe59099/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/Annotations.cs)

```csharp
public bool IncludePrimaryConstructorParameters
```

Get or sets if primary constructor parameters should automatically be included as Serializable fields. Defaults to `true` for `record` types, `false` otherwise.
