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.
30 lines
810 B
C#
30 lines
810 B
C#
using System;
|
|
using System.Data.Common;
|
|
using System.Linq;
|
|
using EntityFrameworkCore.Jet.IntegrationTests.Model02;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace EntityFrameworkCore.Jet.IntegrationTests
|
|
{
|
|
[TestClass]
|
|
public class BooleanMaterializationTest2 : TestBase<Context>
|
|
{
|
|
[TestMethod]
|
|
public void BooleanMaterializationTest2Run()
|
|
{
|
|
// ReSharper disable once RedundantCast
|
|
Console.WriteLine(Context.TableWithSeveralFieldsTypes.Select(c => new {MyNewProperty = (bool) true}).ToList().Count);
|
|
}
|
|
|
|
protected override DbConnection GetConnection()
|
|
{
|
|
return Helpers.GetJetConnection();
|
|
}
|
|
|
|
public override void CleanUp()
|
|
{
|
|
Context.Dispose();
|
|
}
|
|
}
|
|
}
|