EF Codefirst with Design Patterns

I frequently use codefirst approach of  Entity Framework in my asp.net mvc projects. Thefore I want to do much more flexible,independency using design patterns and that project is output. Briefly; Factory Pattern : ContextFactory Singleton Pattern : ContextFactory and UnitOfWork UnitOfWork Pattern  Repository Pattern :  Generic Repository Decorator Pattern : RepositoryDecoratorBase – CachableRepository, LoggableRepository, AuditableRepository Dependency Injection : …

Continue reading ‘EF Codefirst with Design Patterns’ »

Command Design pattern

Hi everyone, in one of previous my posts, I illustrated the using of command design pattern (command query reponsibility separation with command processor) via here.in this post I will exemine this pattern as simpler. Intent – encapsulate a request in an object – allows the parameterization of clients with different requests – allows saving the requests …

Continue reading ‘Command Design pattern’ »

Composition Design Pattern

Definition The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.Composite lets clients treat individual objects and compositions of objects uniformly. Composition design pattern’s uml diagram our hierarchies implementation to composition design pattern Class Diagram See you next post