Category Archives: 10550

How to unit test Roslyn Rewriter?

Yesterday, I wrote a SyntaxRewriter that adds null test on method body. So it could be very easy like this one: public int Foo1(OrderDetail od) {     return od.Product.Category.CategoryID; } That becomes: public int Foo1(OrderDetail od){    if (od == null || od.Product … Continue reading

Posted in 10550, 16402, 17894, 17895, 18099 | Leave a comment

Data oriented WCF service Agile with EF4 and a “sort of” provider LINQ

I use a different approach than Julie’s one for EF Agile development. Indeed, I use here Self-Tracking Entities and I massively use T4. The first step is to create a project DAL in which we will add an edmx. In … Continue reading

Posted in 10500, 10511, 10550, 12253, 7671, 7674, 7675 | 7 Comments


With EF4 features CTP1, we have a great POCO template which is divided in two tt files to allow us to have the entitiy POCO classes and the context in different projects. It’s very very cool. However, I think that … Continue reading

Posted in 10511, 10550, 7671, 7674 | Leave a comment

EF4 POCO: my tests

I published an unit tests project to show how POCO works with EF4. I also wrote a BetaBugs test class in order to illustrate the POCO implementation Beta bugs.

Posted in 10550, 7671, 7674 | Leave a comment