Beispiel #1
0
 public void FillCountries()
 {
     using (var context = new OctoContext())
     {
         context.Countries.Add(new Country {
             Name = "Armenia"
         });
         context.SaveChanges();
     }
 }
Beispiel #2
0
        public void InitializeSalutations()
        {
            using (var context = new OctoContext())
            {
                var account = new Account
                {
                    Name      = "Second account",
                    CountryId = 1
                };

                context.Accounts.Add(account);
                context.SaveChanges();
            }
        }