示例#1
0
        public void TestInsert()
        {
            List <Bar> b = new List <Bar>();

            b.Add(new Bar()
            {
                Latitude = "47.53543", Longitude = "19.039442", Name = "Legenda Sörfőzde Pub"
            });
            b.Add(new Bar()
            {
                Latitude = "47.520278", Longitude = "19.046886", Name = "Stég Pub"
            });
            b.Add(new Bar()
            {
                Latitude = "47.510346", Longitude = "19.030973", Name = "The Pointer Pub"
            });

            dataContext.AddRange(b);
            dataContext.SaveChanges();
        }