v2.6
I'm testing for the presence of a column using FieldInfoProviderSingleton on an unknown entity.
IEntityCollection collection = ....
var info = FieldInfoProviderSingleton.GetInstance().GetFieldIndexes(collection.EntityFactoryToUse.ForEntityName);
if (info.ContainsKey("Status"))
{
IEntityField status = EntityFieldFactory.Create(collection.EntityFactoryToUse.ForEntityName, "Status");
}
The problem is when I attempt to move the project into it's own dll. The FieldInfoProviderSingleton is sealed internal. Is there a more appropriate way to access this information?