Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluent API: Timestamp/RowVersion #5554

Closed
bricelam opened this issue May 27, 2016 · 0 comments
Closed

Fluent API: Timestamp/RowVersion #5554

bricelam opened this issue May 27, 2016 · 0 comments
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@bricelam
Copy link
Contributor

We have a core-level convention for [Timestamp], but no corresponding IsRowVersion method.

In EF6, these were equivalent.

class Data
{
    [Timestamp]
    public byte[] Version { get; set; }
}
// Won't compile on EFCore
modelBuilder.Entity<Data>().Property(d => d.Version).IsRowVersion();
@rowanmiller rowanmiller changed the title Fluent API: IsRowVersion Fluent API: Timestamp/RowVersion May 31, 2016
@rowanmiller rowanmiller added this to the 1.0.1 milestone May 31, 2016
ajcvickers added a commit that referenced this issue Aug 24, 2016
Issue #5554

This is pure sugar for ValueGeneratedOnAddOrUpdate and IsConcurrencyToken.
@ajcvickers ajcvickers added closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. and removed type-investigation labels Aug 25, 2016
@ajcvickers ajcvickers modified the milestones: 1.1.0-preview1, 1.1.0 Oct 15, 2022
@ajcvickers ajcvickers removed their assignment Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

3 participants