Disclaimer : I am the owner of the Entity Framework Classic project
This is not directly possible with the Entity Framework, as @Adailson replied.
However, this is possible through EF Classic: http://entityframework-classic.net/
This is an EF6 plug that also supports .NET Core. We plan to integrate many features and bug fixes.
Community version (FREE) and Enterprise version (PAY) available.
What is EF Classic?
Entity Framework Classic is a supported version from the latest EF6 codebase. It supports the .NET Framework and .NET Core and overcomes some of the limitations of EF by adding tons of required built-in features.
source share