SaaS CMS has officially launched! Learn more now.

How to get data from custom database using EPIServer?

Vote:
 

Hi All,

I have created one custom database and in that i have employee table.So i want to fetch that data using EPIServer so could any one help me?

Thanks,

Lakshmi

#188192
Feb 14, 2018 6:22
Vote:
 

Hi Lakshmi,

To retrieve content from episerver database, you can use IContentLoader or IContentRepository.

In Episerver, content can be any class that implements the IContent interface.

In other words, employees should be saved as either episerver pages, episerver blocks or you can create a custom class that implements the IContent interface.

You can find more info on the following links:

https://world.episerver.com/documentation/developer-guides/CMS/Content/

https://www.epinova.no/en/blog/custom-icontent-with-its-own-navigation-pane/

If you don't want to use the episerver API, then you can retrieve the content using any .net orm tool such as EntityFramework, Dapper, etc.

#188194
Feb 14, 2018 8:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.