public MainWindow() { InitializeComponent(); //repository = RepositoryFactory.GetPersonRepository(); repository = GenericFactory.Get <IPersonRepository>(); }
public MainWindow() { InitializeComponent(); repository = GenericFactory.Get <IRepository <Person, string> >(); }
public void Example() { IRepository <object, string> repository = GenericFactory.Get <IRepository <object, string> >(); repository.GetItems(); }