Tagged Questions
6
votes
3answers
133 views
Advice on “Factory” Pattern Implementation
I'm refactoring some code around a couple of ASP.NET Web Forms pages and decided to try out a variation of the Abstract Factory pattern of my own design. I need to create an implementer of an abstract ...
1
vote
0answers
1k views
Code First/Database First Entity Framework MVC [closed]
The following example is taken from the book Pro ASP.NET MVC 4 - Adam Freeman. This book does a good job going over the basics of the MVC framework. In it a ...
0
votes
1answer
2k views
How to re register dynamic scripts registered with ClientScriptManager in asp dot net using session was bad idea
Following the normal pattern of adding inline scripts to gridview row/s is a bad practice it used to work like below
...
4
votes
1answer
685 views
Implementing SOLID Principles with C# Asp.net
I have started learning about SOLID principles from yesterday. I've got a detailed explanation of SOLID principle here. After reading it and few other articles, I have tried to apply these principles ...
0
votes
1answer
73 views
Searching for a better implementation to EnumBase
In a former question on SO I described a problem with a construct called 'EnumBase'.
As I sad there, I am not involved when basic implementation happened. So I'm not sure why the thinks are a they ...
2
votes
1answer
365 views
Refactor IF into Chain of Responsibility Pattern
I've been trying to learn different patterns of programming, and the "Chain of Responsibility" sort of eludes me. I've been told that my specific code snippet would be a good candidate for chain of ...
1
vote
2answers
221 views
Is My Data Access Leaking Connections?
Folks
I have an N-Tiered ASP.Net Web Forms application which uses Enterprise Library 5.0 for data persistence. Recently I have noticed my application has been spitting out the following error
...
1
vote
0answers
146 views
Best practices in implementing service methods [closed]
Consider the following architecture: ASP.NET MVC Application having controllers which depend on service classes (MembershipService, EmailService etc.) which in turn depend on data access context ...
3
votes
1answer
3k views
Writing a Data Access Layer
I am new to programming and have written this Data Access Layer. I am using this DAL in my projects. Now, I have a feeling that ...
3
votes
3answers
219 views
How below code can be refactored with design pattern?
In one of our project with 3 tier architecture (tightly coupled), there's bad code smell. It doesn't follow DRY principle. I want to refactor it with design possible design pattern. I don't want to ...