Generate your WCF Service from your edmx using T4

One year ago, I wrote T4 templates in order to generate WCF Service from edmx using T4. I presented it in last MS France TechDays and MVP Summit. However, I didn’t take time to think about what I wanted to do with it. Moreover, I wrote them with the EF Beta2 and when I migrated to RTM, it added some bugs (go live ? :p) and I never took time to fix them.

I did it this night.

You were many to tell me about your interest on them.

In my opinion my T4 templates are interesting in comparison with WCF Data Services and WCF RIA Services because:

  • you have the flexibility of meta code in comparison with a techno which allows you to have exactly features you want
  • you have a real context in the client tier
  • many to many relationships are supported (not yet with WCF RIA Services)
  • etc.

I finally decided to share these in codeplex:

Enjoy 🙂

This entry was posted in 10369, 10511, 7671, 7674, 7675. Bookmark the permalink.

One Response to Generate your WCF Service from your edmx using T4

  1. This is a great tool that I’ve not seen anywhere else. This tool save me lots of time while providing me some advanced learning using T4 scripts and WCF.


    Rober C. Burkhall

Leave a Reply

Your email address will not be published. Required fields are marked *