こんにちは、このlinqクエリが日付で返されない理由を誰でも答えてもらえますか?
DocumentStore store = new DocumentStore { Url = "http://localhost:8080/" };
store.Initialize();
using (var session = store.OpenSession())
{
bool carExists = session.Query<Car>().Any(c => c.CarId == 1);
if (!carExists)
{
Car myNewCar = new Car
{
CarId = 1,
ManufactureDate = new DateTime(2010, 1, 1),
Name = "Porshe"
};
session.Store(myNewCar);
session.SaveChanges();
}
IQueryable<Car> cars = session.Query<Car>()
.Where(c => c.ManufactureDate == new DateTime(2010, 1, 1));
foreach (var car in cars)
{
Console.WriteLine(car.Name);
}
Console.ReadKey();
}