Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

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

put on hold as off-topic by durron597, MichaelT, Snowman, amon, Kilian Foth yesterday

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, MichaelT, 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

1 Answer 1

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.