Using Repository Approach in Businesss Layer

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/20/2010 12:49:49 PM
Gravatar
Total Posts 156

Using Repository Approach in Businesss Layer

Which feature would you recommend examining in order to get a better grasp on how to use this Repository system for a custom module Business layer?

Searching the entire Solution (w/ latest source from repo) for keyword "Repository" only seems find MetaContentRepository in PageSettings.aspx.cs.  It doesn't look like it's even used yet.

Also, I guess I'm just overall a little perplexed as to where my custom module is supposed to get a module id, site id, and page id from.

7/20/2010 5:31:47 PM
Gravatar
Total Posts 111
Matt Millican InternetMill

Re: Using Repository Approach in Businesss Layer

I would recommend taking a look at the Developer Training Videos on the site.  They are a great resource and will explain both of your questions above.

7/20/2010 8:39:41 PM
Gravatar
Total Posts 156

Re: Using Repository Approach in Businesss Layer

Yes, I have looked at them, but they sort of skim through things very quickly.  I'll just dig through the source a bit more, I'm sure I'll figure everything out.
 

7/21/2010 8:15:26 AM
Gravatar
Total Posts 18439

Re: Using Repository Approach in Businesss Layer

I used the repository pattern in implementing the guest book, so the videos are a good source.

The ContentMeta.cs, ContentMetaLink.cs and ContentMetaRepository.cs all are part of a good example and it is used on Admin/PageSettings.aspx.cs, the repository is declared at the top, and use of it can be found in the code section #region Meta Data

SavedQuery.cs and SavedQueryRepository.cs are another example used in /DevAdmin/Controls/QueryTool.ascx.cs

The Html feature has also been partially converted to the repository pattern but isn't a clean example like the above examples.

Hope it helps,

Joe

 

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