/// <summary> /// This function adds the history /// </summary> /// <param name="history"></param> /// <returns></returns> public int AddHistory(History history) { var context = new dbDataContext(); var objHistory = new tbl_History { RefId = history.RefId, RefType = history.RefType, SubRefId = history.SubRefId, SubRefType = history.SubRefType, TypeId = history.TypeId, CreatedDate = DateTime.Now, Title = SetHistoryTitle(history), ClientUserId = history.ClientUserId }; context.tbl_Histories.InsertOnSubmit(objHistory); context.SubmitChanges(); return objHistory.HistoryId; }
partial void Updatetbl_History(tbl_History instance);
partial void Deletetbl_History(tbl_History instance);
partial void Inserttbl_History(tbl_History instance);