1

I am using enterprise library DAAB with 4 layers

User interface layer, custom type layer, business logic layer, data access layer.

I want to remain in 4 layers please guide is there any preferably free/ open source code generater that can generate my DAL classes. Or some way to generte DAL using simple ado.net ?

thanks

haansi
  • 5,470
  • 21
  • 63
  • 91

1 Answers1

2

Have you checked out Entity Framework (part of .NET 4.0)? :) It can generate DAL classes based on your existing database structure. And it's free.

Gan
  • 4,827
  • 3
  • 34
  • 50
  • Gan thanks, I will check it as have not checked it already. Can we use Entity Framework (which is part of 4.0) with framework 3.5 ? – haansi Aug 23 '10 at 10:48
  • 1
    I'm not sure about that, have not tried that before, but possible i guess. Or you can use the Entity Framework that first comes with .NET 3.5 SP1. See more here: http://en.wikipedia.org/wiki/ADO.NET_Entity_Framework – Gan Aug 24 '10 at 01:33
  • Also, if you are looking for open source way, you can have a look at NHibernate. It's one of the most popular way to create your DAL. – Gan Aug 24 '10 at 01:34