extremecoder

Stories submitted by extremecoder

Unit Of Work ActionFilter(simplyvinay.com)

submitted by extremecoderextremecoder(255) 2 years, 11 months ago

Setting up StructureMap and The Unit Of Work ActionFilter UnitOfWork ActionFilter In my previous post I had created the repository implementations along with unit of work. But how do we use this unit of work in our application. ASP.NET MVC has a concept of ActionFilters. These could be applied to an action or a controller in general. The two main methods that concern us are OnActionExecuting and the OnActionExecuted. As seen in the code below we call the initialize method of the unit of work which would create a new transaction for us and this is held until the action is complete after which we commit the transaction. We are getting a new instance of _unitOfWork through an IoC container which I will talk about in a bit. read more...

add a comment |category: |Views: 75

tags: another

MPBlog Implementation. Part 4(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years ago

In my previous post we looked at the domain model and the class maps associated with it. In this post lets look at the Repository and Unit Of Work implementations. Note: The following is based on the FubuMVC contrib project. IRepository A repository is an abstraction layer which gives your application an in memory domain object collection. This layer helps in making you application agnostic about where the data is coming from or where it is persisted into. It co... read more...

add a comment |category: |Views: 5

tags: another

MPBlog Implementation. Part 3(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years ago

As mentioned in my previous post, this series will no longer be a talk about DDD as a blog app is too trivial to show ( learn ) the power of it. I will be using some of the patterns of DDD though. So I have changed the name of the app I am building. It will be called MyPersonalBlog ( MPBlog ) henceforth. The project structure has changed a bit from what I had shown here. There is no longer separate layers for infrastructure and domain. I have clubbed... read more...

add a comment |category: |Views: 12

tags: another

A Brief Intermission(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 1 month ago

I got a (few) comment by Colin on my previous post on the series that I had started. He goes like this for me saying that I am the domain expert for the sample application I was building. My main feedback would be that a DDD example done without an external domain expert probably isn't a good idea. A few of us have tried this over the years and decided it wasn't a great idea, I'd at the least indicate your using *some* of the patterns from DDD but not others (including the working with domain experts) and that this isn't necessarily the sort of problem that suits a full DDD approach read more...

add a comment |category: |Views: 1

tags: another

DDDBlog Implementation. Part 2(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 1 month ago

In my previous post, we looked at setting up the project structure and the tools and libraries that we’ll need to build the application. In this post we’ll look at creating a few base classes read more...

add a comment |category: |Views: 10

tags: another

DDDBlog Implementation Part-1(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 1 month ago

Build a blog engine using DDD read more...

add a comment |category: |Views: 11

tags: another

Aspects of TDD(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 1 month ago

This post was supposed to be about the layering in my sample project, but I thought I would talk a bit about TDD as its new to me..... read more...

add a comment |category: |Views: 3

tags: another

Aspects Of DDD - Part 2(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 2 months ago

DDD Basics read more...

add a comment |category: |Views: 1

tags: another

DDD Basics(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 2 months ago

Aspects of DDD read more...

add a comment |category: |Views: 18

tags: another

My Foray into DDD,TDD,MVC and NHibernate(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 2 months ago

If you are closely following the things that are happening around the .NET development arena, there is a lot of interest in DDD ( Domain Driven Design ) along with read more...

add a comment |category: |Views: 26

tags: another

Design Patterns for Dummies(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 2 months ago

Links to all the 23 Gang of Four design patterns read more...

add a comment |category: |Views: 11

tags: another

Memento Pattern(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 2 months ago

Design Patterns for Dummies. The Memento Pattern read more...

add a comment |category: |Views: 12

tags: another

Interpreter Pattern(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 2 months ago

Design Pattern for Dummies - The Interpreter Pattern read more...

add a comment |category: |Views: 19

tags: another

Visitor Pattern(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 3 months ago

Design Patterns for Dummies - The Visitor Pattern read more...

add a comment |category: |Views: 23

tags: another

Observer Pattern(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 3 months ago

Design Patterns for Dummies - The Observer Pattern read more...

add a comment |category: |Views: 15

tags: another

Mediator Pattern(simplyvinay.com)

submitted by extremecoderextremecoder(255) 3 years, 3 months ago

Design Patterns for Dummies - The Mediator Pattern read more...

add a comment |category: |Views: 14

tags: another