@Buch, Dishant, Welcome to Microsoft Q&A, based on my test, I find as you mentioned.
Microsoft.Data.SQLClient
is currently not supported in ef 6.x.
I find Microsoft has stated some notes in their Github Status and Support:
EF6 is no longer being actively developed. This means that:
- Security issues will be fixed, as for any supported product.
- High-impact bugs, typically those impacting a very large number of users, may be fixed.
- Other bugs will not be fixed.
- New features will not be implemented
From the fourth point, Microsoft may not developed the new feature for using Microsoft.Data.SQLClient in ef 6.x.
Therefore, I recommend that you use ef core to replace ef.
Based on my test, I find that ef core supports Microsoft.Data.SQLClient.
Here is a sample you could have a look.
Hope my advice could help you.
Best Regards,
Jack
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.