예제 #1
0
        static void Main(string[] args)
        {
            Country newCountry = new Country();

            newCountry.Code = "CA";
            newCountry.Name = "Canada";

            NSCCApplicationDbContext context = new NSCCApplicationDbContext();

            context.Countrys.Add(newCountry);

            context.SaveChanges();
        }