dotnet / dotnet/EntityFramework.Docs

Update rowversion data type for EF Core 8

Open
#4,774 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

### Type of issue

Outdated article

### Description

This page should be updated for EF Core 8. You can now use `long` or `ulong` properties for the row version with SQL Server.

This also applies to other pages. E.g. the section "Rowversions" on the page [SQL Server Value Generation](https://learn.microsoft.com/en-us/ef/core/providers/sql-server/value-generation?tabs=data-annotations#rowversions) should also be updated.

See also https://github.com/dotnet/EntityFramework.Docs/pull/4764 (note: The change from that PR is not live yet. The page [What's New in EF Core 8](https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-8.0/whatsnew#numeric-rowversions-for-sql-azuresql-server) still shows the not needed `HasConversion` call.)

### Page URL

https://learn.microsoft.com/en-us/ef/core/saving/concurrency?tabs=data-annotations

### Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/saving/concurrency.md

### Document Version Independent Id

f5ee3135-54c8-689c-e28b-b203b376bd6f

### Article author

@ajcvickers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.