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 |
---|---|---|---|
If ?retrywrites=true, DeleteManyAsync() returns a MongoWriteException | 11 | 668 | Oct 2024 |
Exception in monitor thread while connecting to server | 1 | 1.2k | Jul 2024 |
Is this a sound way to construct a “live” query? | 0 | 48 | Sep 2024 |
Not able to connect to local instance with .net when tls is turned on | 1 | 44 | Sep 2024 |
Mongo ChangeStream & changeStreamSplitLargeEvent in golang example | 0 | 63 | Dec 2024 |