Unable to determine the serialization information for *expression* using .Date
问题 I'm trying to read from a mongoDB collection with a Date filter (only the Date, time should be ignored): var filterDefinition = Builders<SomeClass>.Filter.Eq(p => p.SomeDateTimeProperty.Date, DateTime.Now.Date); using (var cursor = await _someCollection.FindAsync(filterDefinition)) { ... } SomeClass and the SomeDateTimeProperty property look like this: [BsonIgnoreExtraElements] [Serializable] public class ReportConfiguration { ... public DateTime SomeDateTimeProperty { get; set; } ... } The