Ok, then i changed the RepositoryBase class like this :
public class RepositoryBase<T> : IRepository<T> where T : class
{
private iMOSSContainer dataContext;
private readonly IDbSet<T> dbset;
public RepositoryBase()
{
DatabaseFactory = new DatabaseFactory();
dbset = DataContext.Set<T>();
}
So :
- i use the "iRepository" interface (and move the "where T : class" statement at the end of the line)
- i remove the "abstract" class (because it leads to another error)
- set the default constructor to "public" (because it leads to another error, as well)
And everything is working good right now.