2 / 2
Mar 24

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.

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):

Hope that helps.

Thanks,

Rishit.