Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

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

Vote:
 

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.

Thanks,

 - Ken

#181771
Aug 29, 2017 19:24
Vote:
 

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

#181774
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.