Click here to Skip to main content
15,919,358 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Uploading photos to Flickr Pin
yetrus11-Jan-12 10:12
yetrus11-Jan-12 10:12 
QuestionCrystol report error in google chrome Pin
pvchandana1-Mar-11 0:37
pvchandana1-Mar-11 0:37 
AnswerRe: Crystol report error in google chrome Pin
thatraja3-Mar-11 14:42
professionalthatraja3-Mar-11 14:42 
QuestionAjaxControlToolkit ModalPopupExtender in code behind [modified] Pin
Robert Espindola27-Feb-11 13:05
Robert Espindola27-Feb-11 13:05 
AnswerRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Not Active27-Feb-11 15:00
mentorNot Active27-Feb-11 15:00 
GeneralRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Robert Espindola27-Feb-11 16:46
Robert Espindola27-Feb-11 16:46 
GeneralRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Not Active27-Feb-11 17:11
mentorNot Active27-Feb-11 17:11 
AnswerRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Vimalsoft(Pty) Ltd28-Feb-11 22:37
professionalVimalsoft(Pty) Ltd28-Feb-11 22:37 
QuestionA proper DI implementation? Pin
Member 391904927-Feb-11 8:59
Member 391904927-Feb-11 8:59 
AnswerRe: A proper DI implementation? Pin
James Simpson28-Feb-11 3:57
James Simpson28-Feb-11 3:57 
GeneralRe: A proper DI implementation? Pin
Member 391904928-Feb-11 19:21
Member 391904928-Feb-11 19:21 
GeneralRe: A proper DI implementation? Pin
Member 391904928-Feb-11 20:01
Member 391904928-Feb-11 20:01 
GeneralRe: A proper DI implementation? Pin
James Simpson28-Feb-11 22:55
James Simpson28-Feb-11 22:55 
GeneralRe: A proper DI implementation? Pin
Member 39190491-Mar-11 8:44
Member 39190491-Mar-11 8:44 
GeneralRe: A proper DI implementation? Pin
Member 39190491-Mar-11 9:07
Member 39190491-Mar-11 9:07 
GeneralRe: A proper DI implementation? Pin
James Simpson1-Mar-11 10:02
James Simpson1-Mar-11 10:02 
I think my examples are probably more confusing than they should be. if you develop your layers without thinking about the DI layer, just rely on getting dependencies into objects via a constructor, you can add the DI container later.

Typically the container would resolve the controller (transparent to your code) and inject an instance of a factory, or repository, or service.. or whatever is needed
Then in the example of the IOrderFactory, the create could also be implemented to resolve the Order object from the same container

But, if the Order is an Entity you should be using a IOrderRepository to manipulate it, and this can include the factory method Create()

The key is to not architect your layers with the DI container in mind, just use the right sort of services to get the job done, at the end of the day they *might* be implemented using a DI container, they might not... if you working with this sort of technology your probably trying to unit test too, so if you get this right, it will probably lead you down the right path anyway.

Google sturcture map ASP.NET MVC implementation there are some good articles that demonstrate the idea behind a simple DI container and MVC.

Good luck

James
James Simpson
Web Solutions Developer
www.methodworx.com

AnswerRe: A proper DI implementation? Pin
Spectre_0013-Mar-11 2:03
Spectre_0013-Mar-11 2:03 
Questionpayment processor - your experience Pin
Jassim Rahma26-Feb-11 20:55
Jassim Rahma26-Feb-11 20:55 
AnswerRe: payment processor - your experience Pin
Abhijit Jana26-Feb-11 22:18
professionalAbhijit Jana26-Feb-11 22:18 
GeneralRe: payment processor - your experience Pin
Jassim Rahma3-Mar-11 1:12
Jassim Rahma3-Mar-11 1:12 
AnswerRe: payment processor - your experience Pin
N a v a n e e t h27-Feb-11 2:56
N a v a n e e t h27-Feb-11 2:56 
GeneralRe: payment processor - your experience Pin
Vimalsoft(Pty) Ltd28-Feb-11 22:38
professionalVimalsoft(Pty) Ltd28-Feb-11 22:38 
QuestionHow to save Session Data using Oracle? Pin
Member 297299226-Feb-11 8:55
Member 297299226-Feb-11 8:55 
AnswerRe: How to save Session Data using Oracle? Pin
Abhijit Jana26-Feb-11 22:22
professionalAbhijit Jana26-Feb-11 22:22 
QuestionWindows service failing to get the data from Database Pin
indian14325-Feb-11 12:21
indian14325-Feb-11 12:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.