Hi MTrinder,
Too bad that EntityFactoryFactory is not a partial class. I think all generated classes should be partial class just in case. But I came up with the following instead of a big if loop...
public static class Helpers
{
public static IEntityFactory GetFactory( string typeOfEntity )
{
EntityType result = (EntityType) Enum.Parse(typeof(EntityType), typeOfEntity);
return EntityFactoryFactory.GetFactory( result );
}
}
Thank You,
Vish