static void TerritoryRepoTest() { var repo = new TerritoryRepo(ConnectionString, ProviderName); var terrs = new List <Territory> { new Territory() { RegionId = 1, TerritoryDescription = "dsadasdad", TerritoryID = "0001" }, new Territory() { RegionId = 1, TerritoryDescription = "rdr2", TerritoryID = "0007" }, new Territory() { RegionId = 1, TerritoryDescription = "blblblbllb", TerritoryID = "000001" }, }; var affected = repo.TryInsertMany(terrs); Console.Write("Affected: {0}", affected); }