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 |
---|---|---|---|
Referencing a document instead of including it and including it in a query in C# | 2 | 564 | Jun 2024 |
Logs are being spammed to console. How can I disable? | 1 | 1.4k | Jun 2024 |
Updating Data with Entity Framework Core | 4 | 241 | Sep 2024 |
BsonClassMapSerializer is now sealed in v3.0 | 1 | 49 | Oct 2024 |
Projection with conditions | 0 | 23 | Jan 15 |