Example #1
0
        /// <summary>
        /// Persists a new instance of Exception_Log to the database.
        /// </summary>
        /// <param name="exception_Log">The instance of exception_Log to persist. </param>
        public static void Insert(Exception_Log exception_Log)
        {
            Int32 exception_Log_Id = exception_Log.Exception_Log_Id;

            Exception_Log.InsertException_Log(exception_Log.Exception_Message, exception_Log.Name_Space, exception_Log.Method, exception_Log.Created_Date, ref exception_Log_Id);

            //Reassign ref and out parameters
            exception_Log.Exception_Log_Id = exception_Log_Id;
        }
Example #2
0
        /// <summary>
        /// Returns all instances of Exception_Log. The pagingInfo parameters are used for paging.
        /// </summary>
        /// <param name="pagingInfo">a container for the paging parameters. </param>
        /// <results>Returns a strongly typed list of Exception_Log. </results>
        public List <Exception_Log> GetAllException_Log(PagingInfo pagingInfo)
        {
            List <Exception_Log> val;
            long totalCount;

            if (pagingInfo == null || pagingInfo.GetAll)
            {
                val = Exception_Log.GetAll();
                if (pagingInfo != null)
                {
                    pagingInfo.TotalCount = val.Count;
                }
            }
            else
            {
                pagingInfo.Normalize();
                val = Exception_Log.GetAll(pagingInfo.PageSize, pagingInfo.StartingRowNumber, pagingInfo.PageNr, out totalCount);
                pagingInfo.TotalCount = totalCount;
            }
            return(val);
        }
Example #3
0
 /// <summary>
 /// Persists a new instance of Exception_Log to the database.
 /// </summary>
 /// <param name="exception_Log">The instance of exception_Log to persist. </param>
 public void InsertException_Log(Exception_Log exception_Log)
 {
     Exception_Log.Insert(exception_Log);
 }