Hi I'm just looking at the EFRepository, and I see you throw an exception if the DbContext doesn't have a parameterless constructor, I'm wondering since you can do it all at compile time using the 'new' constraint, example:
public class Repository where TContext : DbContext, new()
{
}
Hi I'm just looking at the EFRepository, and I see you throw an exception if the DbContext doesn't have a parameterless constructor, I'm wondering since you can do it all at compile time using the 'new' constraint, example:
public class Repository where TContext : DbContext, new()
{
}
Check it out: http://goo.gl/Q78AP