Esempio n. 1
0
        public void InsertMultipleDetails()
        {
            List <Detail> details = new List <Detail>()
            {
                new Detail
                {
                    Province_State = "State2",
                    Country_Region = "Country2",
                    Last_Update    = new DateTime(2020, 04, 06, 11, 23, 5, 321),
                    Latitude       = -81.2546m,
                    Longitude      = -6.9118m,
                    Confirmed      = 31,
                    Deaths         = 22,
                    Recovered      = 43,
                    Active         = 14
                },
                new Detail
                {
                    Province_State = "State3",
                    Country_Region = "Country3",
                    Last_Update    = new DateTime(2020, 04, 06, 11, 23, 42, 321),
                    Latitude       = -97.39467635m,
                    Longitude      = -149.4068m,
                    Confirmed      = 10,
                    Deaths         = 10,
                    Recovered      = 10,
                    Active         = 10
                }
            };

            _detailRepository.InsertMultipleDetails(details);
        }