Skip to main content
4 votes

Storing uploaded images in Azure

Definitly recommend Azure Blob Storage. It is the intended way. It’s also VERY cheap. Blobs in SQL have no advantage except a dependency less. But now you lose a lot of other free stuff like caching, ...
Dirk Boer's user avatar
  • 444
3 votes

Gradual upgrade of an inherited .NET Framework project

You will want to target .NET 8, which is the latest version. Using .NET 6 is not recommended because it is out of support (see Microsoft .NET and .NET Core Lifetime Policy). First, assess the project ...
Greg Burghardt's user avatar
3 votes

What is considered best practice for managing dependency injection for multiple libraries with ASP.NET Core Web API?

I think we have to let Microsoft be the authority on "Best practice" here, so yeah, write an extension method, assume the user knows the namespace for it, read the config by magically ...
Ewan's user avatar
  • 77.5k
2 votes
Accepted

Return response from controller or raise exception from service

Approach 0 Controller public Task UpdateCustomer(Customer request) { await service.Update(request) } Service public void Update(Customer request) { db.Update(request); } If there has been no ...
Ewan's user avatar
  • 77.5k
2 votes

Authorization business logic on claims or on app database?

So i'm assuming here that each user basically gets a different view of your app and loads of things have this UserId field attached. Effectively each user is a tenant of the app. eg Facebook. I would ...
Ewan's user avatar
  • 77.5k
1 vote

How to create QueryBuilder to work with concurrent requests

Amon's comment is along the right track here, but this answer is built on your response to it: "Dependency injection is just for unit testing purpose." You've sort of inverted the problem ...
Flater's user avatar
  • 52.8k
1 vote
Accepted

What is considered best practice for managing dependency injection for multiple libraries with ASP.NET Core Web API?

But that would mean that the first project would have to have a reference to the third project and would have to provide a connection string. Is the API project supposed to be aware of the database ...
Flater's user avatar
  • 52.8k
1 vote

Why would anyone use multipart/form-data for mixed data and file transfers?

Realize that multipart/form-data was standardized by an RFC in 1995. (For comparison, this is over a decade earlier than the first RFC for JSON.) The priorities were substantially different than they ...
Paul Draper's user avatar
  • 6,022

Only top scored, non community-wiki answers of a minimum length are eligible