# AdoNetGrainStorageOptions.KeyFormat

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.adonet/orleans.configuration.adonetgrainstorageoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.persistence.adonet/orleans.configuration.adonetgrainstorageoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/997f2589e814db85c6a451b59c081c88e50b8944/src/AdoNet/Orleans.Persistence.AdoNet/Options/AdoNetGrainStorageOptions.cs)

```csharp
public AdoNetGrainStorageKeyFormat KeyFormat
```

Gets or sets how grain state is mapped to storage keys. Defaults to [AdoNetGrainStorageKeyFormat](/orleans/docs/api/csharp/microsoft.orleans.persistence.adonet/orleans.configuration.adonetgrainstoragekeyformat/).
