I have this Razor Page @page "/Tasks/Edit/{id}" @model ToDoApp.Pages.EditModel This is my id: @Model.Id <hr /> testing And its Page Model public class EditModel : PageMo...
Why you make them nullable in the first place? They are reference types anyway. Nor it shouldn't affect database schema or conventions
Is there any interesting .net blogs, sites?
Is it for practice? If you want smh more complicated try manage them between different dbms. I did smh similar but on console and with postgresql (npgsql provider) and sql ser...
Is there a way I can do the same but with less code? from obj in arrayList.ToArray() where obj is not int && obj is not string && obj is not bool select obj with this instruct...
on stackoverflow i read about runtime&sdk and as i get it, the difference between runtime and sdk shortly is, first for running aps, second for building and running aps. But I...
Ef core. Made 2 queries with the same purpose: select records of autos, that are not referenced to the employee records. Both works. So, question: Which of the approaches is m...
reading a book modern data access with ef core, it says in ef core the EDM (entity data model) was eliminated but the author is not mentioning what is there as an alternative....
can someone explain what the heck is this? very weird sort sportList.Sort((a, b) => { return a.Result - b.Result; });
Lists because of ToList() now are different. But objects inside still same and changes translates to other list. How can I copy the list and Clone every object inside? ps: La...
is development of .net apps in Linux harder than in Windows? Can I work in the same way i.e. with VS 2022 or there will be only CLI like approach?
i did dotnet build --runtime win-x64 with simple helloworld console app. And that's the output folder. Question: how to prevent all these libraries to generate? If I do simple...
Having fun with IEnumerable. Can't understand why if I don't declare public, then I can only implement method with this syntax. Why can't be just GetEnumerator, without IEnume...
var square = x => x * x; var square = (int x): int => x * x; Is this supposed to work for .net 6?
Having fun with Task, Task<TResult>. Want to summarize if I understood correctly. If I want to have parametrized method (Action/Func delegate pointing at parametrized method),...
Question: So there will be created 2 threads? For example in the main() method i call some async method. As I understand async method is processing in the new thread which sto...
I'm getting 1 2 3 two times. I guess in the second foreach it should be 33, 34, 35 right?
Why Unity is better?)
What is the point of this if i can do this way? (c# 5+) ( second screen)
Is there any nice way to decompile the code inside of Visual Studio editor and review code there? I've only found the .NET Reflector and ILSpy options