Skip to main content

All Questions

2 votes
1 answer
247 views

Refactored to use polymorphism in place of case statements

The purpose of the below code is to return different types of job objects based on an argument named "jobType." The original code for the below methods was implemented as a switch statement. I ...
derek kenney's user avatar
0 votes
1 answer
169 views

Conditionally formatting data in a grid

I have telerik radgrid that has an SQL backend. What this function is doing is conditionally formatting the cells with in the radgrid. It checks each column to see if the min and max values are within ...
llerdal's user avatar
  • 117
0 votes
2 answers
863 views

Questionnaire design puzzle

I am designing a small questionnaire web service application but however I would like if someone can look at my design and see if it good approach I am taking. The application has the following ...
Milas's user avatar
  • 101
2 votes
1 answer
9k views

Web service - getting data from SQL and adding to Object

I have created a class called CommandMessages ...
user3284707's user avatar
0 votes
1 answer
239 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 ...
Micha's user avatar
  • 115
6 votes
3 answers
4k views

OOP methods/functions that can return a value or an exception

I'm currently working through a series of bugs in an application. Our application is written in C#/ASP.NET (on the server) and HTML/CSS/JavaScript (on the client). We are using ELMAH to log any ...
Matthew Layton's user avatar
6 votes
2 answers
4k views

What Data Annotations need to be shared/different between my Model & ViewModel to keep seperation of concerns?

I read this question and answers, about if Display Annotations on model properties violates the separation of concerns between view and model. And my interpretation of their answer was "No, not if ...
Matt Rohde's user avatar
2 votes
3 answers
12k views

Database connection class performance

This is my general database connection class. I am using this class to execute my queries through website. What would your suggestions on how to improve performance be? (Running MSSQL 2008 R2 SP1 - ...
Furkan Gözükara's user avatar