Using Using Using: Args Context
Using Using Using: Args Context
using System;
using System.Linq;
namespace LINQTOSQLConsoleApp {
select d;
dept.DepartmentId, dept.Name);
department.Name = "Support";
context.Departments.Add(department);
context.SaveChanges();
context.Departments.Remove(deleteDepartment);
context.SaveChanges();
select d;
dept.DepartmentId, dept.Name);
Console.ReadKey();
When the above code is compiled and executed, it produces the following
result −