Example #1
0
        public static Int32 DeleteException(Int32 exceptionId)
        {
            ExceptionDSTableAdapter ta = new ExceptionDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.Delete(exceptionId));
        }
Example #2
0
        public static ExceptionDS.ExceptionDSDataTable SelectException(Int32 exceptionId)
        {
            ExceptionDSTableAdapter ta = new ExceptionDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetData(exceptionId));
        }
Example #3
0
        public static ExceptionDS.ExceptionDSDataTable GetAllExceptions()
        {
            ExceptionDSTableAdapter ta = new ExceptionDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetAllExceptions());
        }
Example #4
0
        public static Int32 InsertException(Int32 parentExId, string message, string stackTrace, string application, string username, string pageUrl)
        {
            ExceptionDSTableAdapter ta = new ExceptionDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;


            System.Nullable <Int32> parent_ex_id = Helper.ResolveEmptyInt(parentExId);


            int id = Convert.ToInt32(ta.InsertException(parent_ex_id, message, stackTrace, application, username, pageUrl));

            return(id);
        }