Using the following Generic Repository.
public interface IRepository<T> where T: class
{
void Commit();
void Delete(T item);
IQueryable<T> Find();
IList<T> FindAll();
void Add(T item);
}
How do you code structuremap to use it? I'm using Structuremap v 2.6.1 for .net 3.5
public static void BootstrapStructureMap()
{
ObjectFactory.Initialize(x =>
{
// This is giving me problems!
x.For<IRepository<Employee>>().Use<IRepository<Employee>>();
});
}
I get the following error:
StructureMap Exception Code 202 No default instance defined for plugin family