In this post, we look at leveraging T4 templates to extend the power of LLBLGen inside of Visual Studio .NET. Writing T4 templates to auto-generate code is almost a norm at this point it seems, it’s built-in to ASP.NET MVC, and used as a first-class tool in most ORMs. So why not use T4 templates to extend the power of LLBLGen as well.
The Dapper project on GitHub has a performance/benchmark test project that compares a number of ORMs and data access strategies. While the project only tests a very simple fetch algorithm, it's a good starter indicator for performance. I thought I would add one of my favorite ORMs (LLBLGen) to the mix, and see how it performs. ado.net, dapper, entity framework, llblgen, micro-orm
In this post, I will use the model-first approach in LLBGen Pro designer and some custom templates to generate repository classes for LLBLGen entities. I will create a simple membership API with some table-per-type inheritance, build some code-generation templates that extend the out-of-the-box EF templates in LLBLGen to model our API after the repository pattern, make use of SQL stored procedures, extend the generated code with some extension methods; and introduce more surprises along the way. .net, entity framework, llblgen