0

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 ...

Community
  • 1
  • 1
John x
  • 4,031
  • 8
  • 42
  • 67

2 Answers2

1

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.

Firo
  • 30,626
  • 4
  • 55
  • 94
  • tnx for replying, so if i use the sharp architecture i have to write the mapping and the domain classes by hand there is no tool that will generate the domain classes using the database like its done in entity framework or the linq2sql – John x Jan 24 '12 at 12:23
1

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

Nick Ryan
  • 2,662
  • 1
  • 17
  • 24