Questions

Clean Architecture with EF and large models

Lets say you have a hierarchical model with a lot of nodes (100k). And in a UI you can select one or more nodes and make an edit. Then you need to update all affected nodes (i.e. the parents). So now ...

24 May at 01:42

My app is making 2 requests, get and option. Is that normal?

Recently started a core 8 web api project, with react frontend. Rest of my team doesn't know core and react. They write NET 4 and web forms and that is it. I don't have anybody else to ask this questi...

24 May at 01:42

Get actual type of a generic object parameter

No doubt elements of this question have been asked before, but I'm having trouble finding an answer. (Disclaimer: this is related, but separate from a recent question I asked). I have a method like th...

22 May at 04:3

Using singleton for caching

I recently read that singleton is an anti-pattern and should not be used unless it is really needed. In all our projects, we use the singleton pattern to hold some cache data. For example: What is th...

19 May at 10:44

What is the proper .NET way of accessing request(user) data in an API?

A logged in user sent a request. I'm in an API processing that request and I need info about the user (Id, name, etc) at some point. From what I understand sessions used to be the standard way of stor...

17 May at 16:41

Best hosting for .NET web apps ?

Realized that my current host provider for my personal website, NameCheap, dont allow .NET websites, so I’m did some googling & can’t decide what asp.net hosting websites would be best to host portfol...

17 May at 09:1

Making .NET API library for Linux. Is it usable by third party?

So I'm basically making some cross-platform API library in Visual Studio. For now it is used on Windows, but in the future it will be used on Linux too. I targeted it as .NET Standard 2.0. For Linux v...

16 May at 04:10

Localization in .NET console and desktop

Localization and management of translations in .NET has always been a tough nut to crack I think. I've tried various solutions over the years. When the need arose again recently, I tried a new strateg...

16 May at 04:9

Is unit testing necessary for some methods

I have a method that really only has two possible outcomes (if a file uploaded is a PNG or not) there isn’t any possible outcomes outside of yes or no, I unit tested a method that’s the core of an app...

16 May at 04:8

Can I use .net6 runtime to run .net8 library?

Say I have only .net6 runtime installed, can I use this to run a net6 console app referencing a .net8 library assuming the library doesn't use .net8 specific features? I understand it would be easier ...

16 May at 04:7