Hello I am using Adopter service; I required creating an instance of entity by using its name (as String).
Thanks you.
Very similar to the code I've linked to in your previous thread: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=19901
This time IEntityFactory2.CreateEntityCollection() will return IEntityCollection2.
Actually I required only an Entity; not an Entity Collection. On run time I have Entity name and its Primary key value; on the basis of two parameters I want to create an Entity.
Here is what the code should look like:
var entityType = (EntityType)Enum.Parse(typeof(EntityType), "Entity-Name", false); var myEntity = GeneralEntityFactory.Create(entityType); adapter.FetchNewEntity(myEntity.GetEntityFactory(), yourFilter);
It is amazing, Thanks you.