Click here to Skip to main content
13,143,623 members (31,077 online)

Comments by Daniel Gidman (Top 6 by date)

Daniel Gidman 21-Dec-11 13:57pm View
0) your input tables do have to be converted to nvarchar(max) to work
1) Null values will increase the count but not add to the concatenation or break it.
2) CTE's scale fairly well usually.
3) Change MAX(Model) to MIN(Model) to order ascending.
Daniel Gidman 21-Dec-11 13:27pm View
This will break the css if the element has more classes assigned to it than just a class(Red|Green|Blue). Its better to use the original tip. or tip 2 which makes use of the chaining capability of jQuery.
Daniel Gidman 26-Sep-11 13:30pm View
Why not just install and configure Elmah to send the emails?
Daniel Gidman 4-Aug-11 23:20pm View
Enum to Dictionary @

Thats an extension methoad that will convert an enumeration to a dictionary.
Daniel Gidman 21-Jul-11 9:44am View
Magic number (4) is account for the prefix "set " || "get " due to it being inside a property asscessor.

So, not really magic at all, just due to location of call.

As to simplifying for outside calling of a the PropertyChanged... Use expressions.

linq-expressions-and-extension-methods-to-get-property-name @

I think the big thing that I don't like very much about your solution here is that it doesn't really remove maintenance concerns, it minimizes them some and centralizes them, but doesn't remove them completely.
Daniel Gidman 20-Jul-11 13:36pm View
Reason for my vote of 1
The methods are redundant and easily implemented with Where(), Select() and other extension methods very quickly. Also you are typing the method against a string when you could easily type it against a variable type "T" such that the same methods will work across any like types.

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid