Dynamically Build LINQ Queries Using Reflection

Date May 12, 2008

I was recently working on a project where there was an option to export data from the database.  The export function simply exported 2 hard-coded columns that were returned by a stored procedure into a tab-delimited text file. 
The sproc looked something like select id, name from mytable (I am over simplifying of course).  I […]

Unit Test Linq to Sql in ASP.Net MVC with Moq

Date April 4, 2008

I have just spent the entire day playing with Moq to unit test an asp.net mvc application I am working with. All I wanted to do is test a “create” method that simply adds a record to the database. So here it goes.
1. I created a Mock Http context to be used by my controller. […]

Close
E-mail It