static void Main(string[] args) { var connectionString = @"Server=.;" + "Database=MiniORM;" + "Integrated Security=True;"; var context = new SoftUniDbContext(connectionString); context.Employees.Add(new Employee { FirstName = "Nikolay", LastName = "Doychev", DepartmentId = context.Departments.First().Id, IsEmployed = true, }); var employee = context.Employees.Last(); employee.FirstName = "Modified"; context.SaveChages(); }