You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
939 B
C#
27 lines
939 B
C#
using System;
|
|
using EntityFramework.Jet.FunctionalTests.TestUtilities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.TestModels.ConcurrencyModel;
|
|
using Microsoft.EntityFrameworkCore.TestUtilities;
|
|
|
|
namespace EntityFramework.Jet.FunctionalTests
|
|
{
|
|
public class F1JetFixture : F1RelationalFixture
|
|
{
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context)
|
|
{
|
|
base.OnModelCreating(modelBuilder, context);
|
|
|
|
|
|
modelBuilder.Entity<Chassis>().Property<byte[]>("Version").IsRowVersion();
|
|
modelBuilder.Entity<Driver>().Property<byte[]>("Version").IsRowVersion();
|
|
|
|
modelBuilder.Entity<Team>().Property<byte[]>("Version")
|
|
.ValueGeneratedOnAddOrUpdate()
|
|
.IsConcurrencyToken();
|
|
}
|
|
|
|
protected override ITestStoreFactory TestStoreFactory => JetTestStoreFactory.Instance;
|
|
}
|
|
} |