public DiRepositoryController(RepositoryMem <Entity1> rep1, IRepository <Entity1> irep1) { rep1.Add(new Entity1() { Title = DateTime.Now.Ticks.ToString() }); //Singleton irep1.Add(new Entity1() { Title = DateTime.Now.Ticks.ToString() }); //Transient repository = rep1; }
public DiRepositoryController(RepositoryMem<Entity1> rep1,IRepository<Entity1> irep1) { rep1.Add(new Entity1() { Title = DateTime.Now.Ticks.ToString() }); //Singleton irep1.Add(new Entity1() { Title = DateTime.Now.Ticks.ToString() }); //Transient repository = rep1; }
public Entity1ViewComponent(RepositoryMem<Entity1> rep1) { _data = rep1; }
public Entity1ViewComponent(RepositoryMem <Entity1> rep1) { _data = rep1; }