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