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.
EntityFrameworkCore.Jet/test/EFCore.Jet.FunctionalTests/PropertyValuesJetTest.cs

29 lines
1.1 KiB
C#

// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using EntityFrameworkCore.Jet.FunctionalTests.TestUtilities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.TestUtilities;
namespace EntityFrameworkCore.Jet.FunctionalTests
{
public class PropertyValuesJetTest(PropertyValuesJetTest.PropertyValuesJetFixture fixture)
: PropertyValuesRelationalTestBase<PropertyValuesJetTest.PropertyValuesJetFixture>(fixture)
{
public class PropertyValuesJetFixture : PropertyValuesRelationalFixture
{
protected override ITestStoreFactory TestStoreFactory => JetTestStoreFactory.Instance;
protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context)
{
base.OnModelCreating(modelBuilder, context);
modelBuilder.Entity<Building>()
.Property(b => b.Value).HasColumnType("decimal(18,2)");
modelBuilder.Entity<CurrentEmployee>()
.Property(ce => ce.LeaveBalance).HasColumnType("decimal(18,2)");
}
}
}
}