Beispiel #1
0
        public static void InsertClan()
        {
            var clan = new Clan
            {
                ClanName = "Vermont Clan",
                Id       = 1
            };

            using (var context = new NinjaDomainContext())
            {
                context.Database.Log = Console.WriteLine;
                context.Clans.Add(clan);
                context.SaveChanges();
            }
        }
Beispiel #2
0
        public static void InsertClan()
        {
            var clan = new Clan
            {
                ClanName = "Vermont Clan",
                Id = 1
            };

            using (var context = new NinjaDomainContext())
            {
                context.Database.Log = Console.WriteLine;
                context.Clans.Add(clan);
                context.SaveChanges();
            }
        }