The inversion-of-control tag has no wiki summary.
-1
votes
1answer
119 views
Converting between data and presentation types
I'm quite new to stuff like DI, MVVM and WPF altogether, so it's fairly possible this reads like a giant WTF...
I have defined an interface in my business layer, ISomeEntity; then in my data layer, I ...
37
votes
5answers
2k views
Why is Inversion of Control named that way?
The words invert or control are not used at all to define Inversion of Control in the definitions that I've seen.
Definitions
Wikipedia
inversion of control (IoC) is a programming technique, ...
1
vote
5answers
661 views
Dependency Injection Confusion
I think I have a decent grasp of what Dependency Inversion principle (DIP) is, my confusion is more around dependency injection.
My understanding is the whole point of DI is to decouple parts of an ...
1
vote
2answers
329 views
what's a good approach to working with multiple databases?
I'm working on a project that has its own database call it InternalDb, but also it queries two other databases, call them ExternalDb1 and ExternalDb2. Both ExternalDb1 and ExternalDb2 are actually ...
0
votes
1answer
81 views
How to 'convert' a Static Access style project to IoC/DI style?
Are there any best approaches for refactoring a programming project that has previously been written with the static reference anti-pattern (the majority of classes refer at some point to a static ...
5
votes
3answers
106 views
XML Documentation for IoC Classes
I'm working on an application that uses Inversion of Control to achieve loose coupling between the Data Access and Business Layers.
Having an ILoanApplicationRepository and a ...
9
votes
2answers
422 views
What's the practical difference between the styles of dependency injection?
I'm new to dependency injection and I have a few questions about which style I shouldI use in my applications. I've just read Inversion of Control
Containers and the Dependency Injection pattern by ...
1
vote
1answer
451 views
CQRS with Repository pattern and Inversion of Control (with DI)
I assigned a POC project to someone where I asked to implement both Command Query Responsibility Segregation, Inversion of Control (with Dependency Injection) and Repository pattern. “Someone” gave ...
0
votes
1answer
1k views
Layered architecture using Entity Framework with different class libraries
Our business requirements required to create a layered and modular architecture. So I designed an architecture to make it as decoupled and as modular as possible. I will list my layers below
ASP ...
1
vote
2answers
488 views
IoC containers and service locator pattern
I am trying to get an understanding of Inversion of Control and the dos and donts of this. Of all the articles I read, there is one by Mark Seemann (which is widely linked to in SO) which strongly ...
4
votes
2answers
196 views
Dependency injection and IOC containers in a closed project
Does it make sense to assemble my project with dependency injection containers if I am the only one who will use the code of that project?
The question came up when I read this IOC Article ...
4
votes
1answer
226 views
DI: Can a stable dependency have a volatile dependency?
I've recently been reading through Mark Seemann's Dependency Injection in .NET and have been attempting to apply some of what I've learned in a new project I'm working on, and I'm stumped on a ...
3
votes
2answers
235 views
When is using DI and optionally a IoC framework a step too far?
Consider a logging system - used absolutely everywhere in your codebase.
(note - logging is just an example, don't take it too literally and point me at your favourite logging system).
public ...
3
votes
1answer
387 views
Lazy loading can lead to stale data, violates IoC?
Trying to be a better programmer
I have an application that keeps track of Roles and Permissions, I had classes for Role and Permission which were just value objects.
class Role
{
int RoleID
...
37
votes
6answers
7k views
Single Responsibility Principle - How Can I Avoid Code Fragmentation?
I'm working on a team where the team leader is a virulent advocate of SOLID development principles. However, he lacks a lot of experience in getting complex software out of the door.
We have a ...