public ActionResult Index() { var count = itemDemoRepository.Count(); var id = itemDemoRepository.InsertAndGetId(new ItemDemo { CreationTime = DateTime.Now }); return(View()); }
public void AsUpdateable_BatchUpdate() { var items = GetItemDemos(1000); _itemDemoRepository.InsertRange(items); var total = _itemDemoRepository.Count(); Assert.True(total >= 1000); }