Hi team,
I would like to dynamically instantiate the EntityField2 type programmatically in .NET CORE. I was able to do this in .NET 4.0 using this line of code:
EntityField2 fld = (EntityField2)EntityFieldFactory.Create("UserEntity", "FirstName");
This code resulted in an instance of EntityField2 class for the UserEntity.FirstName field, which I could use in predicate expressions.
I didn't find the EntityFieldFactory in generated .NET CORE Standard 2.1 code. How can I achieve the same scenario, so that I can get EntityField2 instance using a string parameter with the name of the entity and another string parameter with the name of the field?
Best regards,
Albin