Try our conversational search powered by Generative AI!

The "right" way to find a metaclass name programmatically ?


Hi all,

I have this old code that finds a MetaClass name by Id:

var metaClassName = Mediachase.MetaDataPlus.Configurator.MetaClass.Load(CatalogContext.MetaDataContext, _content.MetaClassId)?.Name ?? string.Empty;

So I was wondering -- is there a way to do this using Epi Repository objects?  I have heard that "contexts" are deprecated.


 - Ken

Aug 29, 2017 19:24

That should be it - the contexts are not being deprecated. You can use them until further notice (which will not happen anytime soon) 

Aug 29, 2017 20:58
* 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.