Created
September 5, 2019 20:03
-
-
Save changhuixu/da3e0d28226b1d774197477c7530dc2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class BankAccountEntityTypeConfigurationSqlite : IEntityTypeConfiguration<BankAccount> | |
{ | |
public void Configure(EntityTypeBuilder<BankAccount> builder) | |
{ | |
builder.ToTable("BankAccounts"); | |
builder.HasKey(x => x.Id); | |
builder.Property(x => x.Id).HasColumnName("Id").ValueGeneratedOnAdd(); | |
builder.Property(x => x.Balance).HasColumnName("Balance").HasConversion<double>() | |
.IsConcurrencyToken(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment