SaaS CMS has officially launched! Learn more now.

How to get data from custom database using EPIServer?


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?



Feb 14, 2018 6:22

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:

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.

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.