public bool Update(Member entity) { link.Member_Update(entity.ID, entity.Fisrt_Name, entity.Middle_Name, entity.Last_Name, entity.Mail, entity.HeadLine, entity.Summary, entity.Gender, entity.Profile_Img, entity.Cover_Img, entity.Date_Of_Birth, entity.Date_Joined, entity.Zip_Code, entity.FK_Country, entity.Profile_URL, entity.FK_Industry, entity.IsDeleted, entity.Membership_ID); return(link.SaveChanges() > 0); }
protected void btn_upload_Click(object sender, EventArgs e) { Education education = new Education(); education.FK_School = 1; education.Degree = txt_degree.Text; education.FieldOfStudy = txt_fieldofstudy.Text; education.Grade = txt_grade.Text; education.Activities = Request.Form["S1"]; education.From_Year = Convert.ToInt32(ddl_fromyear.SelectedValue); education.To_Year = Convert.ToInt32(ddl_toyear.SelectedValue); education.Description = Request.Form["S2"]; context.Education_Insert(education.FK_School, education.Degree, education.FieldOfStudy, education.Grade, education.Activities, education.From_Year, education.To_Year, education.Description, education.FK_Member); context.SaveChanges(); Response.Redirect("ViewEducation.aspx"); }
public bool Update(Organization entity) { //compare entities and get the same entity with same id in dbcontext ctx.Organization_Update(entity.ID, entity.Title, entity.AboutUs, entity.Logo_Img, entity.Cover_Img, entity.Location, entity.FK_Org_Size, entity.Site_URL, entity.Date_Start, entity.FK_Industry, entity.IsDeleted); return(ctx.SaveChanges() > 0); }
public bool Update(Comment entity) { link.Comment_Update(entity.ID, entity.Content, entity.FK_Post, entity.FK_MemberWrite); return(link.SaveChanges() > 0); }
public bool Update(Country entity) { link.Country_Update(entity.ID, entity.Name); return(link.SaveChanges() > 0); }
public bool Update(Education entity) { link.Education_Update(entity.ID, entity.FK_School, entity.Degree, entity.FieldOfStudy, entity.Grade, entity.Activities, entity.From_Year, entity.To_Year, entity.Description, entity.FK_Member); return(link.SaveChanges() > 0); }
public bool Update(Certification entity) { link.Certification_Lookups_Update(entity.ID, entity.Name, entity.FK_Org, entity.License_Number, entity.Start_Year, entity.Start_Month, entity.End_Year, entity.End_Month, entity.URL, entity.FK_Member); return(link.SaveChanges() > 0); }
public bool Update(Work_Experience entity) { link.Work_Experience_Update(entity.ID, entity.Jop_Title, entity.FK_Org, entity.Location, entity.From_Year, entity.From_Month, entity.To_Year, entity.To_Month, entity.Description, entity.FK_Member); return(link.SaveChanges() > 0); }
public bool Update(Post entity) { link.Posts_Update(entity.ID, entity.Content, entity.FK_Member); return(link.SaveChanges() > 0); }
public bool Update(Group entity) { link.Group_Update(entity.ID, entity.Name, entity.Description, entity.Data_Start, entity.FK_Create_Member, entity.IsDeleted); return(link.SaveChanges() > 0); }
public bool Update(Skill entity) { link.Skills_Update(entity.ID, entity.Name); return(link.SaveChanges() > 0); }
public bool Update(Like entity) { link.Like_Update(entity.ID, entity.FK_Post, entity.FK_Member); return(link.SaveChanges() > 0); }