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

Forums / Developing with Sitefinity / Module custom "special" provider

Module custom "special" provider

3 posts, 0 answered
  1. Stéphane
    Stéphane avatar
    6 posts
    Registered:
    26 Jun 2012
    28 Oct 2014
    Link to this post

    Hi,

    I need some advices for a special module architecture.

    I must do a custom module,  but i need to connect to an other database . I must use providers, but their is a problem: its interbase with odbc connectors. So i presume i cant use standard openaccess stuff (like entity framework : not support of odbc).

     My first idea was to write a "custom provider", in which i ll populate my models form dataset via linq.I think to implements provider's abstract methods (GetModuleItem; IQueryable<ModuleItem> GetModuleItems() etc)  with classic odbc code.

    My goal is to keep a standard sitefinity module architecture, and have same use of a standard module  in others steps of developpement (widgets frontend/backend etc).

     Is my approach correct? Should i do this directly on services, and skip the provider? or an completely different approach?

    My very first problem is:  what is the "proper" way to implement this?

    Required :

    • Custom module with standard architecture
      • implement data model
      • use of sitefinity services
      • use default sitefinity list /create update views
    • Connect external DB for module datas
    • Use ODBC connector

    Thanks

     

  2. Stéphane
    Stéphane avatar
    6 posts
    Registered:
    26 Jun 2012
    07 Nov 2014
    Link to this post
    Nobody can help?
  3. Nadezhda Petrova
    Nadezhda Petrova avatar
    20 posts
    Registered:
    28 Oct 2016
    07 Nov 2014
    Link to this post
    Hello ​Stéphane,

    Yes, this is the correct approach. You have to create a custom data provider. In this documentation article you can find tutorials how to create different custom modules, implement the data model, implement the frontends and backend views.

    Moreover you can use Sitefinity Thunder to create a custom module. Thunder provides an option to choose data access layer for the custom module between OpenAccess and Entity Framework. So you can investigate how the provider is implemented. 

    Regards,
    Nadezhda Petrova
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
3 posts, 0 answered