public TEntity Get(TId id) { // get the entity from the actual storage // cast or convert the entity var dataItem = DataStore.Get(id); return(EntityMapperFactory.ResolveMapper <TDataStoreEntity, TEntity>().Map(dataItem)); }
public IEnumerable <TEntity> Get(IEnumerable <TId> ids = null) { var dataItems = DataStore.Get(ids); return(EntityMapperFactory.ResolveMapper <TDataStoreEntity, TEntity>().MapMany(dataItems)); }