I’m going around and around a little in the documentation on how to implement encryption with the ef core driver. Is there a sample project or can I get an example.
Skip to main content
Hey @Annette_Varndell ,
Since the MongoDB EF Core provider is built on top of the .NET/C# driver, you can re use the MongoClient
used to create the DbContext
to leverage any functionality of the driver. We recently validated this in this ticket for Client Side Field Level Encryption (CSFLE). We’re aiming to improve the schema mapping for encrypted fields in our EF Core provider. Although, there’s no dedicated tutorial yet for encryption with the EF Core provider, you can see how to use it using the underlying C# driver in the following documentation (use C# in the language dropdown on the right):
- Queryable Encryption Quickstart
- Client Side Field Level Encryption Quickstart
- Comparing the 2 approaches
Hope that helps.
Thanks,
Rishit.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Question about requestID field in OP_MSG wire protocol | 1 | 508 | May 2024 |
Darshan Hiranandani : How can I ensure Kotlin Instant is serialized as BsonDateTime instead of BsonString? | 0 | 404 | Jun 2024 |
Could I ask if anyone has ever disabled writeConcern acknowledge to boost performance? | 0 | 285 | Jul 2024 |
How do I avoid duplicate data in MongoDB (Java) | 1 | 111 | Sep 2024 |
Using MongoDB.Bson 3.0.0 with .NET Framework 8 | 3 | 245 | Jan 22 |