easyquery/DotNetSamples

.NET 6 with EF core 6 on VS 2022

Closed this issue · 5 comments

korzh commented

Closed by mistake (it was supposed to be another issue). Reopened.

Thanks, my laptop with win 11, does not support the old .NET core :)

korzh commented

That's really strange since the .NET documentation says it must be supported without any problem:
https://docs.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0

You see .NET Standard 2.0 is not something you can actually "install". It's just a specification and (as you can see from the link above) there are many versions of .NET Framework, .NET Core, and .NET that support this specification. You can install a particular version of the particular framework that supports .NET Standard 2.0 and in theory, any package that targets .NET Standard 2.0 must work without any problem on that version framework. According to the page listed above, .NET 6.0 supports .NET Standard 2.0

So, we need to investigate this more.

korzh commented

@melnalex Could you please try to reproduce this problem on a clean machine (for example a virtual Win11 machine on Azure)?

Hello Korzh, I am so sorry, I am not sure what was going on. It took me a good while when I was playing around with it. So I cleaned everything, tried it on a different machine and it ran fine. So, I am scratching my head here, I don't understand why it was showing old .NET 2 targets.

And today I deleted everything and got the latest samples, to my surprise the ASP Core MVC views project is completely missing, also you used to have permissions for an authorized user, which was greatly convenient, is that coming back with any update. Or, was it moved somewhere renamed to something else?

On the data permissions, maybe this is out of scope, but if you can show how an admin, can change the role/or add claim to let user see only their regional data, that can be a differentiator, since you have some reports also.

Also I see its sql, but I like your approach and wondering how this work on a NoSql like a Mongo /Redis or Neo4j?