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
791 B
C#
30 lines
791 B
C#
using System;
|
|
using System.Data.Common;
|
|
using System.Linq;
|
|
using EFCore.Jet.Integration.Test.Model02;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace EFCore.Jet.Integration.Test
|
|
{
|
|
[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 AssemblyInitialization.Connection;
|
|
}
|
|
|
|
public override void CleanUp()
|
|
{
|
|
Context.Dispose();
|
|
}
|
|
}
|
|
}
|