Simple, but yet mysterious for me: Why do StringPropertyConfiguration (and all the other PropertyConfiguration) class(es) have 2 overloads for IsConcurrencyToken()
?
The first:
public StringPropertyConfiguration IsConcurrencyToken()
Configures the property to be used as an optimistic concurrency token.
And the second:
public StringPropertyConfiguration IsConcurrencyToken(bool?)
Configures whether or not the property is to be used as an optimistic concurrency token.
Why would you use one over the other? As I see it, there's no difference at all between those two overloads (atleast not when working with them)...
By using the first you would write something like:
modelBuilder.Entity<Author>()
.Property(x => x.Name)
.IsConcurrencyToken();
And by using the second you would write:
modelBuilder.Entity<Author>()
.Property(x => x.Name)
.IsConcurrencyToken(true/false/null);
Have I missed something?