File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
tests/MongoDB.Driver.Tests Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,20 @@ public void TestDeserialization()
100
100
}
101
101
}
102
102
103
+ [ Fact ]
104
+ public void TestLinq ( )
105
+ {
106
+ var customDomain = BsonSerializer . CreateSerializationDomain ( ) ;
107
+ customDomain . RegisterSerializer ( new CustomStringSerializer ( ) ) ;
108
+
109
+ var client = DriverTestConfiguration . CreateMongoClient ( c => c . SerializationDomain = customDomain ) ;
110
+ var db = client . GetDatabase ( DriverTestConfiguration . DatabaseNamespace . DatabaseName ) ;
111
+ var collection = db . GetCollection < Person > ( DriverTestConfiguration . CollectionNamespace . CollectionName ) ;
112
+
113
+ var exp = collection . AsQueryable ( ) . Where ( el => el . Name == "test" ) ;
114
+ var e = exp . ToString ( ) ;
115
+ }
116
+
103
117
public class Person
104
118
{
105
119
[ BsonId ] public ObjectId Id { get ; set ; }
You can’t perform that action at this time.
0 commit comments