partial void DeleteT_Error(T_Error instance);
 partial void InsertT_Error(T_Error instance);
 partial void UpdateT_Error(T_Error instance);
Пример #4
0
		public void SaveError(Error error)
		{
			using (var dc = new EngageCCTDataClassesDataContext())
			{
				T_Error tError = new T_Error();
				tError.ErrorID = (Guid)error.ErrorID;
				tError.errDateTime = error.DateTime;
				tError.errMessage = error.Message;
				tError.errSource = error.Source;
				tError.errStackTrace = error.StackTrace;
				dc.T_Errors.InsertOnSubmit(tError);
				dc.SubmitChanges();
			}
		}