How to do unit testing with EF 4.2

0 Comments

If you want to do unit testing with Entity Framework 4.2, I suggest you read this article: http://romiller.com/2010/09/07/ef-ctp4-tips-tricks-testing-with-fake-dbcontext/ It explains how to create a Interface for you DbContext and create fake implementations for the IDbSet,

How to create a stored procedure with T-SQL

4 Comments

Well for ages, I created mine stored procedures like: if exists (select 1 from sys.objects where name = 'GetSales' and type = 'p') begin drop procedure [Reporting].[GetSales] end go create procedure [Reporting].[GetSales] @parameter1 int, @parameter2