Results 1 to 2 of 2

Thread: Template Asp.Net MVC Application - Critic Wanted

  1. #1

    Thread Starter
    Hyperactive Member Krokonoster's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town
    Posts
    448

    Template Asp.Net MVC Application - Critic Wanted

    I did mention this before, but figured start a new thread so the responses are in one place.

    I started with this “template” project using Asp.Net MVC 2, .Net 4.0, C# and VS 2010 (with Resharper doing the baby –sitting).
    You can download it here

    The idea was to create a solution that I can use as starting point for pretty much any application (or at least parts of it) and I got to the point where I better get things organized before going on (not to mention tested!)
    Was hoping to share this and perhaps we can learn from each other? So bring on the critic (constructive).

    Please bear with me, as even though I’ve been using Asp.Net MVC for a while, I must split my time between PHP and Java (not to mention front end development), so got some gaps in my knowledge.

    1. The main thing I know just have to be wrong is the project structure.
    2. Also I’m not too confident about my way of using View Models, and manually converting that to domain models. (AutoMapper I tried in another project and it soon turned into a nightmare)
    3. IoC (Castle) are in place and working, along with BootStrap tasks for registering things. (Routes, Areas, Model Binders, etc)
    4. A Custom Membership provider are in there and being used (I like the fact I only use 3 tables and can customize things depending on a specific application requirement)
    5. Implemented AntiXssEncoder
    6. Implemented Login, Register, View Membership details just to see all that works fine


    I think the main thing I want to get sorted out at this stage is the project structure. Any advice on how to change the solution to have it be loosely coupled and scalable will be welcome.

    I know I should work on commenting my code and get Code Coverage via Tests up (naughty naughty)

    Let me know what you think.


  2. #2

    Thread Starter
    Hyperactive Member Krokonoster's Avatar
    Join Date
    Jan 2010
    Location
    Cape Town
    Posts
    448

    Re: Template Asp.Net MVC Application - Critic Wanted

    I spend all night (it's 7:30 AM) to nut out NHibernate and completely messed up.
    If someone know Castle and NHibernate well, perhaps you can download this source code and see if you can see what I'm doing wrong.
    Sight.....it was coming along really nice and now.... kabooming again.
    I did several things I'm not too familiar with (See Ch.23 in Asp.Net MVC in Action 2) to implement NHibernate.
    Such as post build actions that copy dll's to my web project's bin folder, some changes to my web config and all of a sudden I have serious issues about references and my IoC logic bombs out telling me Castle Windsor cannot be found, but it's right there.
    Maybe I just did sth obvious (really tired).....any help would appreciated.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width