Hello everyone,
I've been using Sub Sonic 3.x.x.x and i've come across something i need help with. I'm using an abstract class and a factory pattern etc.. and this is basically the problem:
public abstract class Person { }
public class Male : Person { }
public class Female : Person { }
....
how do i get this to work String personType = "male"; Type myType = GetPersonTypeFromFactory(personType);
SimpleRepository rep = new SimpleRepository();
var all = rep.All<...>().ToList();
i can't put rep.All so how can i get this working ??