public static void Edit(Weblog_Recommend WR) { BlogDataDataContext BD = new BlogDataDataContext(); var temp= BD.Weblog_Recommends.Single(p=>p.Recommend_Id==WR.Recommend_Id); temp.Recommend_LogId = WR.Recommend_LogId; BD.SubmitChanges(); }
public static bool Insert(Weblog_Recommend WR) { BlogDataDataContext BD = new BlogDataDataContext(); BD.Weblog_Recommends.InsertOnSubmit(WR); BD.SubmitChanges(); return true; }
/// <summary>Called before a Weblog_Recommend is deleted.</summary> /// <param name="instance">The instance.</param> partial void DeleteWeblog_Recommend(Weblog_Recommend instance);
/// <summary>Called before a Weblog_Recommend is updated.</summary> /// <param name="instance">The instance.</param> partial void UpdateWeblog_Recommend(Weblog_Recommend instance);
/// <summary>Called before a Weblog_Recommend is inserted.</summary> /// <param name="instance">The instance.</param> partial void InsertWeblog_Recommend(Weblog_Recommend instance);