I have problem as above. My code:
public abstract class BaseFactory where T: class
{
protected static dbModelContainer context = new dbModelContaine
You don't.
You always need to supply the generic type arguments when accessing a class, even though you aren't using that type argument in your method. Since you don't actually use the generic type in the method it means you could move that method out of that class, and into one that isn't generic, but for as long as it's in that class you'll need to supply the generic argument.