Data Access Application Block Support....

Yep.....

If you don't like the dOOdad architecture, you can use MyGeneration to generate Stored Procedures and a complete DAL that make use of the Data Access Application Block in VB.Net or C# that use the more classic approach.

have a look here at the DAAB architecture.

Published 03-17-2005 11:47 AM by Patrick Wellink
Filed under: ,

Comments

# re: Data Access Application Block Support....

Thursday, March 17, 2005 12:31 PM by Patrick Wellink
It all looks really cool. I even registered on the website. But is there a quickstart, or getting started?

# re: Data Access Application Block Support....

Thursday, March 17, 2005 12:52 PM by Patrick Wellink
Yep there is see your inbox....

# re: Data Access Application Block Support....

Thursday, March 17, 2005 1:02 PM by Patrick Wellink
1. Start Mygeneration…
2. File->New->Project
3. Right Click “New Project” in the treeview and select add “Template Instance”
4. First Enter A name for this Template ( For example NorthWind dOOdad Entities)
5. Select the Template you want. (dOOdad Business Entity C#)
6. Hit the Record Template Input button.
7. Select the directory where the Files will be placed
8. Select the Tables
9. Hit OK


10. You should do step 3 till 10 again for the Business Class and the SQL Stored procedures
11. Make sure you select different directories for everything


12. Now go to Visual Studio.
13. Open a new C# Project.
14. Add an Existing Project wich is the architecture in the \Program Files\MyGeneration\dOOdad ( or some of the subdirs )

15. Now Add all the generated stuff to your project and off you go…..

# re: Data Access Application Block Support....

Thursday, March 17, 2005 1:06 PM by Patrick Wellink
Oh.... I forgot one thing...

Once the dOOdad Project is included you have to select the database driver you want....

Do this by setting Compile to true..
So if you want MS-SQL set the compile option of :

SqlClientEntity.vb
SqlClientDynamicQuery.vb

To True....

Oh and you will need a config file as well....
But you can see that in the samples

and last but not least don't forget to set the settings correct for language and database....