0
public interface IRepository<TEntity, in TID> where TEntity : IAggregateRoot
{
TEntity Find(TID id);
}
そのimplimentationは、上記のリポジトリにTIDを渡す方法汎用リポジトリでEntityとIDを渡すには?
public class Repository<TEntity, TID> : IRepository<TEntity, TID> where TEntity : class, IAggregateRoot
{
public virtual TEntity Find(TID id)
{
return _unitOfWork.Session.Get<TEntity>(id);
}
}
の下に与えられていますか?