c# - Onion Architecture -


i setting project structure upcoming internal application trialling onion architecture proposed palermo (http://jeffreypalermo.com/blog/the-onion-architecture-part-3/).

i have followed guidelines, need verification on structure of project far.

before diagrams, questions:

  1. i think references correct (set per diagram arrow means 'has reference to') verification good.

  2. what should put in dependency resolution layer? helpers go? has reference other projects?

  3. how web services & ui, communicate dal? (through core? how?)

  4. what should go where? [broad question know...]

the simplified conceptual diagram follows (folders represent namespaces):

enter image description here enter image description here

i think references correct (set per diagram arrow means 'has reference to') verification good.

1 looks ok not sure it's idea insert dependency resolution diagram.

what should put in dependency resolution layer? helpers go? has reference other projects?

2 believe dependency injection stuff here.

how web services & ui, communicate dal? (through core? how?)

3 core according palermo's diagram. in core, have repositories talking dal , domain models, , services (not web services) dealing repositories , domain models. , ui/web services talk services.

what should go where? [broad question know...]

4 again, think answer in palermo's diagram. in opinion, organizing projects can different , trivial when there full understanding of architecture.

onion architecture became obvious me once understood ddd , necessary design patterns such mvc, dependency injection, repository/service, orm.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -