Exemplo n.º 1
0
		private void detach_HigherEducations(HigherEducation entity)
		{
			this.SendPropertyChanging();
			entity.Account = null;
		}
Exemplo n.º 2
0
 partial void DeleteHigherEducation(HigherEducation instance);
Exemplo n.º 3
0
 partial void InsertHigherEducation(HigherEducation instance);
Exemplo n.º 4
0
 partial void UpdateHigherEducation(HigherEducation instance);
    public bool presist(HigherEducationDTO entity)
    {
        try
        {
            model.HigherEducation obj = new HigherEducation();
            obj.userName = entity.userName;
            obj.major = entity.major;
            obj.institution = entity.institution;
            obj.town = entity.town;
            obj.province = entity.province;
            obj.country = entity.country;
            obj.educationType = entity.educationType;
            obj.major = entity.major;
            obj.industry = entity.industry;
            obj.length = entity.length;
            obj.nqf = entity.nqf;

            ctx.HigherEducations.InsertOnSubmit(obj);
            ctx.SubmitChanges();
            return true;
        }
        catch (Exception)
        {
            ctx.Dispose();
            ctx = new ModelDataContext();
            return false;
        }
    }