Steven's user avatar
Steven's user avatar
Steven's user avatar
Steven
.NET Junkie
  • Member for 13 years, 7 months
  • Last seen this week
622 votes
Accepted

One DbContext per web request... why?

530 votes
Accepted

What does a lock statement do under the hood?

308 votes
Accepted

How do I effectively design my application where most classes depend on ILogger?

221 votes
Accepted

Logger wrapper best practice

145 votes
Accepted

Make sure that the controller has a parameterless public constructor error

118 votes
Accepted

How to find an identity of the last inserted row in Entity Framework?

109 votes
Accepted

Get sum of two columns in one LINQ query

100 votes
Accepted

Simple Injector vs Hiro vs Autofac

96 votes
Accepted

How to inject dependency to static class

84 votes
Accepted

When to use TryAddSingleton or AddSingleton?

75 votes
Accepted

How to get variable name using reflection?

72 votes
Accepted

.NET Entity Framework and transactions

72 votes
Accepted

Dependency Injection in attributes

71 votes

Ioc/DI - Why do I have to reference all layers/assemblies in application's entry point?

70 votes
Accepted

.NET Core dependency injection -> Get all implementations of an interface

69 votes
Accepted

Separating the service layer from the validation layer

65 votes
Accepted

Validation: How to inject A Model State wrapper with Ninject?

65 votes
Accepted

Concatenate two Func delegates

64 votes

Why would one use a third-party DI Container over the built-in ASP.NET Core DI Container?

64 votes
Accepted

Async provider in .NET Core DI

63 votes

Method to Add new or update existing item in Dictionary

62 votes
Accepted

Negating Func<T, bool> in lambda expression

60 votes
Accepted

Use dependency injection in static class

54 votes
Accepted

Dependency Injection and IDisposable

54 votes

C# Generic constraints to include value types AND strings

52 votes
Accepted

Lazy Dependency Injection

51 votes
Accepted

What is a DI Container?

50 votes

How to catch SqlException caused by deadlock?

49 votes
Accepted

Why doesn't IEnumerable<T> implement Add(T)?

49 votes
Accepted

Simple Injector unable to inject dependencies in Web API controllers

1
2 3 4 5
91