CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

David Hayden [MVP C#]

         .NET Tutorials, Patterns, and Practices

Repository Factory Guidance Package Screencast

While I was on vacation last week I received numerous emails asking for a Repository Factory Screencast, so I created one quickly today on PnPGuidance:

This screencast goes over the code that is generated by the guidance package. In a future screencast I will walkthrough using the guidance package itself when it is finished.

The screencast highlights some of the more important changes from the Data Access Guidance Package:

  • Microsoft.Practices.Repository Common Assembly
  • Repository Interfaces
  • RepositoryFactory Class
  • RepositoryFactory Configuration Section

and a quick example of their use.

If you are new to both the Data Access Guidance Package and the Repository Factory, I have a screencast that shows you how to use the Data Access Guidance Package, which is really not much different from the Repository Factory. You can watch the Data Access Guidance Package Screencast to get a feel for the code generation:

Create Data Access Layer Using Data Access Guidance Package Screencast

Hope this helps!

 


Published Sep 05 2007, 07:01 PM by David Hayden
Filed under:

Comments

jawahar said:

david

Thanks so much for explainig the use of the Data Access Guidance package  (DAGP) and also the Repository  Factory guidance Package(RFGP).

I had downloaded a screen cast last week for the DAGP set up a datalayer for my project using your demo as an example I noticed that one of the generated folders was called generic and had a lot of CRUD interfaces and some reposoitory classes.

This week in your RFGP screencast there is no folder called generic and you use the Repository factory create method to create an Interface and the call a getCustomer method on that interface.

Has some of the Repository factory code base changed since last week?

If I now try to create a data access layer in a new project the generic folder is no longer generated. I have downloaded the latest code base from codeplex but did not build it or install any new msi packages.

When I initially downloaded the code I used these instructions to set up <www.codeplex.com/.../ProjectReleases.aspx)>

Have I missed a step in settingup the Repository Factory dll?

Do i need to download the latest source code and build it and use those dll's?

Jawahar

# September 6, 2007 3:53 PM

David Hayden said:

The Repository Factory is in development, so it sounds like you grabbed it at the beginning of the project before a common Microsoft.Practices.Repository Assembly was introduced.

You need to keep downloading the source from week to week as it has changed quite a bit from the beginning when it was still like the Data Access Guidance Package and it will continue to change until it becomes officially released to the community.

# September 7, 2007 10:26 AM

XOR said:

Hey David, Thanks for posting the screen cast. I had a quick question. I really like the repository factory but I'm not able to use the enterprise library or MS SQL Server all the time. I know you created your own flavor of the repository factory to use any library you want but is there one that lets me use IBM DB2 or Oracle?

# September 7, 2007 10:41 AM

David Hayden said:

XOR,

You could use the DbProviderFactories that are a part of the .NET 2.0 Framework, which is what the DAAB does, and create a data access layer that will work for any database.

However, what I might recommend, is just simplifying the DAAB as I mentioned here:

davidhayden.com/.../SimplifyingDataAccessRepositoryFactoryStillUsingSqlHelper.aspx

Pulling over SqlDatabase, OracleDatabase, and GenericDatabase will give you the DAAB in an easier to use package than the DAAB.

# September 8, 2007 9:35 AM

Vacation Packages » Repository Factory Guidance Package Screencast said:

Pingback from  Vacation Packages &raquo; Repository Factory Guidance Package Screencast

# October 22, 2007 12:45 AM
Check out Devlicio.us!

This Blog

Syndication

News

CodeBetter.Com Home