partial void DeleteCompetence(Competence instance);
 partial void InsertCompetence(Competence instance);
 partial void UpdateCompetence(Competence instance);
        protected void LinkButton3_Click(object sender, EventArgs e)
        {
            TextBox tb_NewName = (TextBox)GridView1.FooterRow.FindControl("tb_NewName");
            DropDownList ddl_NewCompType = (DropDownList)GridView1.FooterRow.FindControl("ddl_NewCompType");

            var comp = new Competence();

            comp.Name = tb_NewName.Text;
            comp.Type = ddl_NewCompType.SelectedValue;

            _eJDataContext.Competence.InsertOnSubmit(comp);
            try
            {
                _eJDataContext.SubmitChanges();
            }
            catch
            {
                _eJDataContext.ChangeConflicts.ResolveAll(RefreshMode.KeepChanges);
                {
                    try
                    {
                        _eJDataContext.SubmitChanges();
                    }
                    catch (Exception exept)
                    {
                        Console.WriteLine("Error:  " + exept);
                    }
                }
            }

            FillCustomerInGrid();
        }