EntityFrameworkCore.DataEncryption icon indicating copy to clipboard operation
EntityFrameworkCore.DataEncryption copied to clipboard

Not compatible with ef core 5

Open grinay opened this issue 4 years ago • 1 comments

Hi Guys. Trying to use your lib in my project and found that it's not compatible with ef 5. The problem in the file "EncryptionMigrator" the reflection is finding the method by name but in EF 5 there is two methods with name "Set"

Can you change it to

public static class EncryptionMigrator
    {
        private static readonly MethodInfo SetMethod =
            typeof(DbContext).GetMethods()
                .First(x => x.GetParameters().Length == 0 && x.Name == nameof(DbContext.Set));

grinay avatar Aug 11 '21 09:08 grinay

Hello, sorry to come back to you that late. There is actually a PR on hold to add support for .NET 5 and .NET 6. This might solve your issue.

I'll notify you on this issue when the upgrade will be released.

Eastrall avatar Nov 14 '21 11:11 Eastrall