Using 2.0 from 11/7/06, Adapter.
We have a base service which each of our Entity services extends.
public abstract class BusinessService<TEntity> : IBusinessService<TEntity> where TEntity : EntityBase2, IEntity2
We have the following method:
public EntityCollectionBase2<TEntity> FetchCollection()
{
//TODO: Create IEntityCollection2 from TEntity
//
//
DataAccessAdapter.FetchEntityCollection(colToFetch,null);
return colToFetch;
}
It appears we need the EntityFactory to create a collection. We cannot find a way to get to that factory given the EntityBase2 object.
We read a couple posts where CallCreateEntityFactory was used but the method is internal.
Any advice is greatly appreciated.
Regards.