Get data from MetaClass table.

Vote:
 

Hi,

Is there an episerver api to use to get all entries, or the Name and the MetaClassId from that table in the database?

Thanks in advance.

#217033
Feb 13, 2020 10:32
Vote:
 

Mediachase.MetaDataPlus.Configurator.MetaClass.GetList(MetaDataContext) would give you MetaClassCollection which is the list of MetaClass, then you can get Name and MetaClassId 

You can use MetaDataContext.Instance to get the required MetaDataContext

#217034
Feb 13, 2020 10:41
Vote:
 

Thanks Quan! This was exactly where I was looking for.

#217035
Feb 13, 2020 11:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.