I have asked a similar question before which was not answered, i am trying to understand how can i generate LINQ2SQL classes using T4 templates. I'm using (or trying to use) sharp architecture. just couldn't find the starting point.

What i have done: i have gone through many tutorials blogs that describe code generation using the T4 templates but couldn't find a way how can i generate the entity classes or linq2sql classes from the database like its done in the Entity Framework. Do i have to hand write the mappings and then the classes will be generated using the database or what if my question seems vague or not properly phrased, sorry for that but thats all i have of T4 and Fluent Hibernate at the moment.

I'll be grateful for any guidance/help ...

有帮助吗?

解决方案

sharp architecture is using NHibernate under the covers. I don't think it supports Linq2Sql as well. Either use Linq2Sql (Getting started) or sharp architecutre.

其他提示

LLBLGen can generate Linq2Sql from a relational data model, LLBLGen would get you going quickly.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top