Click here to Skip to main content
15,881,812 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionQuestions About Entity Framework and the Repository Pattern Pin
Kevin Marois29-Jun-18 5:28
professionalKevin Marois29-Jun-18 5:28 
AnswerRe: Questions About Entity Framework and the Repository Pattern Pin
Nathan Minier29-Jun-18 7:34
professionalNathan Minier29-Jun-18 7:34 
GeneralRe: Questions About Entity Framework and the Repository Pattern Pin
Kevin Marois29-Jun-18 7:46
professionalKevin Marois29-Jun-18 7:46 
GeneralRe: Questions About Entity Framework and the Repository Pattern Pin
Nathan Minier29-Jun-18 8:03
professionalNathan Minier29-Jun-18 8:03 
GeneralRe: Questions About Entity Framework and the Repository Pattern Pin
Kevin Marois29-Jun-18 8:27
professionalKevin Marois29-Jun-18 8:27 
AnswerRe: Questions About Entity Framework and the Repository Pattern Pin
Gerry Schmitz29-Jun-18 10:38
mveGerry Schmitz29-Jun-18 10:38 
QuestionMEF based Web API Pin
Mycroft Holmes28-Jun-18 21:12
professionalMycroft Holmes28-Jun-18 21:12 
AnswerRe: MEF based Web API Pin
Nathan Minier29-Jun-18 7:15
professionalNathan Minier29-Jun-18 7:15 
Yes, MEF will work very well for this purpose. I've built similar systems before, and key sticking points for me were:
  1. Use a good standards-based query approach (like REST) so that you can build a concise base class for the DirectoryCatalog to pick up via [InheritedExport]. Trying to get fancy with specific method location (such as Dictionary<string,func<iowinrequest,object>> ControllerActions) will lead quickly to abstraction bloat and maintenance nightmares.
  2. Make sure you have your authorization model de-coupled from the controller (though metadata attributes can be used to provide this in concrete implementations). This may work with WebAPI2 out of the box, but I'm not 100% positive on that count (I used a custom OWIN web server for my implementation).
  3. If you're using an ORM, either make sure to resolve objects before they leave your controller, or make your data context a part of a request object that is passed to your controller actions.
Those are the biggies that have cause me tears over the years.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

GeneralRe: MEF based Web API Pin
Mycroft Holmes30-Jun-18 13:36
professionalMycroft Holmes30-Jun-18 13:36 
QuestionPython-ic way of efficient TV player app architecture Pin
ninjaef27-Jun-18 0:06
ninjaef27-Jun-18 0:06 
AnswerRe: Python-ic way of efficient TV player app architecture Pin
Richard MacCutchan27-Jun-18 2:44
mveRichard MacCutchan27-Jun-18 2:44 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
ninjaef27-Jun-18 4:36
ninjaef27-Jun-18 4:36 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
Richard MacCutchan27-Jun-18 4:45
mveRichard MacCutchan27-Jun-18 4:45 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
ninjaef27-Jun-18 5:15
ninjaef27-Jun-18 5:15 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
ninjaef27-Jun-18 5:37
ninjaef27-Jun-18 5:37 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
Richard MacCutchan27-Jun-18 6:22
mveRichard MacCutchan27-Jun-18 6:22 
AnswerRe: Python-ic way of efficient TV player app architecture Pin
Gerry Schmitz27-Jun-18 10:50
mveGerry Schmitz27-Jun-18 10:50 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
ninjaef28-Jun-18 6:52
ninjaef28-Jun-18 6:52 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
Richard MacCutchan28-Jun-18 6:54
mveRichard MacCutchan28-Jun-18 6:54 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
ninjaef1-Jul-18 21:36
ninjaef1-Jul-18 21:36 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
Richard MacCutchan1-Jul-18 21:53
mveRichard MacCutchan1-Jul-18 21:53 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
ninjaef2-Jul-18 8:47
ninjaef2-Jul-18 8:47 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
Richard Deeming28-Jun-18 7:44
mveRichard Deeming28-Jun-18 7:44 
GeneralRe: Python-ic way of efficient TV player app architecture Pin
Gerry Schmitz28-Jun-18 8:09
mveGerry Schmitz28-Jun-18 8:09 
AnswerRe: Python-ic way of efficient TV player app architecture Pin
Pete O'Hanlon2-Jul-18 3:04
mvePete O'Hanlon2-Jul-18 3:04 

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.