// Produces {"BoolField":true}
|
var findFieldV2 = testV2.Find(x => x.BoolField).ToString();
|
|
// Produces {"BoolProperty":true}
|
var findPropertyV2 = testV2.Find(x => x.BoolProperty).ToString();
|
|
// Produces {"BoolField":true}
|
var findFieldBuilderV2 = testV2.Find(Builders<TestClass>.Filter.Eq(x => x.BoolField, true)).ToString();
|
|
// Produces {"BoolProperty":true}
|
var findPropertyBuilderV2 = testV2.Find(Builders<TestClass>.Filter.Eq(x => x.BoolProperty, true)).ToString();
|
|
// Produces {"$expr":"$BoolField"}
|
var findFieldV3 = testV3.Find(x => x.BoolField).ToString();
|
|
// Produces {"BoolProperty":true}
|
var findPropertyV3 = testV3.Find(x => x.BoolProperty).ToString();
|
|
// Produces {"BoolField":true}
|
var findFieldBuilderV3 = testV3.Find(Builders<TestClass>.Filter.Eq(x => x.BoolField, true)).ToString();
|
|
// Produces {"BoolProperty":true}
|
var findPropertyBuilderV3 = testV3.Find(Builders<TestClass>.Filter.Eq(x => x.BoolProperty, true)).ToString();
|
|
// Produces {"BoolField":{"$ne":true}}
|
var negFindFieldV2 = testV2.Find(x => !x.BoolField).ToString();
|
|
// Produces {"BoolProperty":{"$ne":true}}
|
var negFindPropertyV2 = testV2.Find(x => !x.BoolProperty).ToString();
|
|
// Produces {"BoolField":false}
|
var negFindFieldBuilderV2 = testV2.Find(Builders<TestClass>.Filter.Eq(x => x.BoolField, false)).ToString();
|
|
// Produces {"BoolProperty":false}
|
var negFindPropertyBuilderV2 = testV2.Find(Builders<TestClass>.Filter.Eq(x => x.BoolProperty, false)).ToString();
|
|
// Produces {"$nor":[{"$expr":"$BoolField"}]}
|
var negFindFieldV3 = testV3.Find(x => !x.BoolField).ToString();
|
|
// Produces {"BoolProperty":{"$ne":true}}
|
var negFindPropertyV3 = testV3.Find(x => !x.BoolProperty).ToString();
|
|
// Produces {"BoolField":false}
|
var negFindFieldBuilderV3 = testV3.Find(Builders<TestClass>.Filter.Eq(x => x.BoolField, false)).ToString();
|
|
// Produces {"BoolProperty":false}
|
var negFindPropertyBuilderV3 = testV3.Find(Builders<TestClass>.Filter.Eq(x => x.BoolProperty, false)).ToString();
|