Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Could anybody help me to find a good tutorial about how can I implement DAO pattern and also tools that help me to create this classes in automated way.

share|improve this question

closed as off-topic by durron597, MichaelT, Snowman, amon, Kilian Foth Oct 12 '15 at 9:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – durron597, Community, Snowman, amon, Kilian Foth
If this question can be reworded to fit the rules in the help center, please edit the question.

Please note that I exchanged the repository tutorial link because the codeproject article was quite difficult and not straight to the point. – Falcon Sep 23 '11 at 16:24
up vote 6 down vote accepted

I think it might help you more to google for the repository pattern. It's nearly the same as a DAO, only that DAOs can be finer grained while a repository usually just encapsulates an aggregate root. The principle behind both is the same, though.

As for the code generation: You could just setup a T4 template for them or use an other template engine like NVelocity to create those DAOs automatically. However, if you implement DAOs/Repositories in a generic fashion, then there's little need for code generation in my opinion.

Here's also a tutorial for implementing DAOs with entity framework.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.