Exemplo n.º 1
0
        private void InitCompanyTable(postgresContext context)
        {
            var            json  = File.ReadAllText(".\\TestData\\company_data.json");
            List <Company> model = JsonConvert.DeserializeObject <List <Company> >(json);

            context.AddRange(model);
            context.SaveChanges();
        }