What is need for SubSonic?

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
2/25/2008 2:43:12 PM
Gravatar
Total Posts 550

What is need for SubSonic?

Hi joe

I Study SubSonic project web site. That is a data layer code generator. in other hand mojoportal use CodeSmith for this purpose.What is need for SubSonic?

Thanks

2/26/2008 6:40:43 AM
Gravatar
Total Posts 18439

Re: What is need for SubSonic?

The short answer is that SubSonic is going to make it a lot easier to support the different databases with much less work.

If you look at the mojoPortal.Data.Common project, it uses SubSonic. Next look at code in WebStore.Data.MySql and you'll see how for most of its methods it just calls a corresponding method in mojoPortal.Data.Common and only a few methods need a db specific implementation. Also if you look in dbLinks.cs for all the data layers, they all use the same code from mojoPortal.Data.Common.

It makes the DAL code easier to implement, more simple and easier to maintain.

Another nice feature is what they call the scaffold page. If you are using the latest svn code, set this in your user.config (or Web.config)

<add key="DisableDBAdminTool" value="false" />
<add key="ShowProviderListInDBAdminTool" value="true" />
<add key="EnableDeveloperMenuInAdminMenu" value="true" />

you'll see a new link on the Administration Menu for "Developer Tools", click that and you'll see a link for Data Administration which is the scaffold page.

Joe

You must sign in to post in the forums. This thread is closed to new posts.