Exemplo n.º 1
0
        public LINQDBGUI()
        {
            InitializeComponent();

            EmployeeDataClassesDataContext dc = new EmployeeDataClassesDataContext();
            EmpTask task = new EmpTask()
            {
                Code        = 444,
                Description = "Upload VS Project to GitHub"
            };

            dc.EmpTasks.InsertOnSubmit(task);
            dc.SubmitChanges();
        }
 private void detach_EmpTasks(EmpTask entity)
 {
     this.SendPropertyChanging();
     entity.Task = null;
 }
 private void attach_EmpTasks(EmpTask entity)
 {
     this.SendPropertyChanging();
     entity.Task = this;
 }
 partial void DeleteEmpTask(EmpTask instance);
 partial void UpdateEmpTask(EmpTask instance);
 partial void InsertEmpTask(EmpTask instance);