Archive - C#

Connect Your Web App To Twitter Using Hammock & C-Sharp

5 August 2010 by Andre, 1 Comment

The Challenge Recently I was challenged with the task of connecting a web application to Twitter and sending out a tweet. This article will focus on the connection to Twitter, saving the talk about sending out a tweet for another article.  Having used TweetSharp last year, I thought I would check for an updated version [...]

MVC and Table Inheritance: Part 1

22 April 2010 by Amy, 1 Comment

PART 1:  Setting up the database and Entity Framework Model Okay, so say you need to create an internal IIS hosted web application that acts as a portal for managing internal training courses.  You could do a simple ASP.NET web forms app…. but what’s the fun in that?!?  Besides, you know that you’re going to [...]

ASP.NET MVC: Attributes and Semi Dynamic Check for Request Parameters

6 August 2009 by Sean, No Comments

If I were self involved I would say something silly like IN THIS AWESOME POST but I’m not. However in this post that is awesome I gave some examples of how to use attributes to set defaults or just check to see if an incoming id could be matched to a record somewhere… Sorry lost [...]

Entity Framework: Reusable Paging Method

16 July 2009 by Sean, No Comments

OBSOLETE… sort of. Found an issue with this and am posting the issue today. (07/21/2009) A while back I decided to show some paging stuff and I forgot that recently, well ok in the last few months, I actually put together a sort of generic extension method to take care of most of the paging [...]

Linq Join Extension Method and How to Use It…

29 April 2009 by Sean, 3 Comments

I don’t like using the query syntax when it comes to Linq to AnythingButTheKitchenSink . Not sure why. Mostly, I guess, is that I seem to have a liking for Funcs and Actions to the point of stupidity and although you can work them into the query syntax, it just doesn’t look right. Now with [...]

Tags: , ,

ConfigurationManager And AppSettings… A Wrapper Class Story

4 February 2009 by Sean, 3 Comments

You can file this under “Do I really need this?” but for now I kind of like it. That, however, may change in the next hour. The idea is simple, create a class that uses the ConfigurationManager AppSettings NameValueCollection (Triple Combo!) but only presents properties that represent the keys in the .config file. This way [...]

I are tupid

7 July 2008 by Sean, No Comments

This may be novel or really dumb, but I like it. Say you want to convert a Dictionary to a List of KeyValuePairs that are sorted by something within the dictionary Key or Value. Don’t ask why, just go with it. You could do this: Where someDictionary is Dictionary<Type, string> : List<KeyValuePair<Type, String>> dataSource = [...]