1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Pluggable custom module having multiple providers

Pluggable custom module having multiple providers

2 posts, 0 answered
  1. Rick
    Rick avatar
    29 posts
    Registered:
    28 Oct 2009
    15 Jan 2010
    Link to this post
    Hi,

    I posted my thread before, but decided to post new one to make everything clear and refreshed.

    I am trying to make a custom pluggable module named 'Training'.
    Its structure is very similar to Blogs module.
    It has got Training Course corresponding to Blog in Blogs module and Training Session corresponding to Post in Blogs module.

    I understand the concept of how Blogs module is implemented.
    I implemented Training Session using Sample.Product from http://www.sitefinity.com/blogs/ivan/posts/09-03-11/sample_generic_content_based_module_products_module.aspx

    I found this post http://www.sitefinity.com/support/forums/sitefinity-3-x/developing-with-sitefinity/blog-like-module.aspx which is exactly what I try to do.
    I also implemented Command Panel having Training Couse, Training Session, Categories... as its members.

    My question is how to exactly implement Training Course in terms of provider and data access?
    Idealy, I want to use Linq for my custom pluggabe module rather than Nolics.

    Can anyone help?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    20 Jan 2010
    Link to this post
    Hi Rick,

    My question is how to exactly implement Training Course in terms of provider and data access?


    You have to crate a new Provider( say CustomModuleProvider) that should inherits from ProviderBase. Then you need to create a Data class with default data provider. This default data provider(CustomDefaultDataProvider) should inherit from CustomModuleProvider. In your CustomDefaultDataProvider you need to override all methods from CustomModuleProvider and perist the parameter values with Linq. As far as I rember we sent you several links that this is explained and also there are few samples which are actually whole implementation - ContactsModule with Linq provide.


    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered