예제 #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;
        }
    }