Пример #1
0
		private void detach_HigherEducations(HigherEducation entity)
		{
			this.SendPropertyChanging();
			entity.Account = null;
		}
Пример #2
0
 partial void DeleteHigherEducation(HigherEducation instance);
Пример #3
0
 partial void InsertHigherEducation(HigherEducation instance);
Пример #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;
        }
    }