About

I live in one of the most beautiful capitals in the world “Canberra” in Australia with my wife and enjoy writing software, cooking food and listening & playing music. I recently reviewed a book on AutoMapper.

View my linked in profile.

  1. Marco
    July 11, 2011 at 6:53 pm

    Just stumbled upon your blog and your EF coverage is great! I have a question I would like to ask you about your app design when using EF. Do you handle all your reads and writes using your same model? Im running into a design issue where my UI requirements are changing my domain model to include lots of navigation properties that are only needed by the UI and not the behavior. Any thoughts would be great!

    • August 2, 2011 at 9:05 pm

      Hi Marco,
      Thanks for your comment. Now regarding your question I think separation of concern is key to your design. In my opinion your UI should not dictate your domain model it is totally against the Domain Driven Development and might lead into Anemic Domain Model design and a lot of problem in the future. I think what you should do is design your domain as per your business and for UI and navigation metadata use DTO ( Data transfer Objects), there is also a concept of aggregate root or Entity Aggregation which will help you aggregate different entity into single DTO.

      Hope this helps and if not then email me at PrashantBrall@hotmail.com and I can look into your problem in details.

      Cheers !!!

      • Shathish
        November 13, 2012 at 5:42 pm

        Hi Prashanth,
        Could you elaborate bit more (if you could give an example) on your reply please.
        I’m having the same dilemma, and hope your answer could give me some insight.
        thanks

  2. December 2, 2014 at 6:42 am

    Hi,

    How are you able to add sample code in separate box in your articles? May this question be silly but i am not able to do this.

    • December 4, 2014 at 8:26 pm

      Hi Joshua,
      I have replied to you on your email.

  3. Joel
    November 4, 2015 at 11:52 am

    Like your blog. You should definitively take a look at ServiceStack.Net. Happy blogging.

    • November 17, 2015 at 3:24 am

      Hi Joel, thanks for your comment and yes I have looked into ServiceStack.Net but have never used in a real life project. May be I should blog about it anyway πŸ™‚

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: