Exemplo n.º 1
0
        public override void CommitLogEvent(LogEvent logEvent)
        {
            LogEventData toInsert = LogEventData.FromLogEvent(logEvent, this.DatabaseAgent);

            if (toInsert.Insert() == -1)
            {
                throw toInsert.LastException;
            }
        }
Exemplo n.º 2
0
        public static LogEventData FromLogEvent(LogEvent logEvent, DatabaseAgent agent)
        {
            LogEventData retVal = LogEventData.New(agent);

            retVal.Category     = logEvent.Category;
            retVal.Computer     = logEvent.Computer;
            retVal.EventID      = logEvent.EventID;
            retVal.Message      = logEvent.Message;
            retVal.Severity     = logEvent.Severity.ToString();
            retVal.TimeOccurred = logEvent.TimeOccurred;
            retVal.Source       = logEvent.Source;
            retVal.User         = logEvent.User;
            return(retVal);
        }
Exemplo n.º 3
0
 public static LogEventData SelectOneWhere(DaoSearchFilter filter)
 {
     return(LogEventData.SelectOneWhere <LogEventData>(filter));
 }
Exemplo n.º 4
0
 public static LogEventData[] Select(DatabaseAgent agent)
 {
     return(LogEventData.Select <LogEventData>(agent));
 }
Exemplo n.º 5
0
 public static LogEventData[] SelectTop(LogEventDataSearchFilter filter, int count, DatabaseAgent agent)
 {
     return(LogEventData.Select <LogEventData>(filter, count, agent));
 }
Exemplo n.º 6
0
 public static LogEventData[] SelectByPropertyList(LogEventDataFields field, DatabaseAgent agent, params object[] propertyValues)
 {
     return(LogEventData.SelectByPropertyList <LogEventData>(field, agent, propertyValues));
 }
Exemplo n.º 7
0
 public static LogEventData New(DatabaseAgent agent)
 {
     return(LogEventData.New <LogEventData>(agent));
 }
Exemplo n.º 8
0
 public static LogEventData[] SelectTop(OrderBy orderBy, int count, DatabaseAgent agent)
 {
     return(LogEventData.SelectTop <LogEventData>(orderBy, count, agent));
 }
Exemplo n.º 9
0
 public static LogEventData[] Search(LogEventDataSearchFilter filter, DatabaseAgent agent)
 {
     return(LogEventData.Search <LogEventData>(filter, agent));
 }
Exemplo n.º 10
0
 public static LogEventData[] Search(LogEventDataSearchFilter filter)
 {
     return(LogEventData.Search <LogEventData>(filter));
 }
Exemplo n.º 11
0
 public static LogEventData[] SelectListWhere(LogEventDataFields fieldName, object value, DatabaseAgent agent)
 {
     return(LogEventData.SelectListWhere <LogEventData>(fieldName.ToString(), value, agent));
 }
Exemplo n.º 12
0
 public static LogEventData[] SelectByIdList(int[] ids, DatabaseAgent agent)
 {
     return(LogEventData.SelectByIdList <LogEventData>(ids, agent));
 }
Exemplo n.º 13
0
 public static LogEventData[] SelectByIdList(int[] ids)
 {
     return(LogEventData.SelectByIdList <LogEventData>(ids));
 }
Exemplo n.º 14
0
 public static LogEventData SelectById(long id, DatabaseAgent agent)
 {
     return(LogEventData.SelectById <LogEventData>(id, agent));
 }
Exemplo n.º 15
0
 public static LogEventData SelectById(long id)
 {
     return(LogEventData.SelectById <LogEventData>(id));
 }
Exemplo n.º 16
0
 public static LogEventData SelectOneWhere(DaoSearchFilter filter, DatabaseAgent agent)
 {
     return(LogEventData.SelectOneWhere <LogEventData>(filter, agent));
 }
Exemplo n.º 17
0
 public static LogEventData SelectTop(OrderBy orderBy, DatabaseAgent agent)
 {
     return(LogEventData.SelectTop <LogEventData>(orderBy, agent));
 }
Exemplo n.º 18
0
 public static LogEventData[] Search(LogEventDataSearchFilter filter, OrderBy orderBy)
 {
     return(LogEventData.Search <LogEventData>(filter, orderBy));
 }
Exemplo n.º 19
0
 public static LogEventData New()
 {
     return(LogEventData.New <LogEventData>());
 }
Exemplo n.º 20
0
 public static LogEventData[] Search(LogEventDataSearchFilter filter, OrderBy orderBy, int count, DatabaseAgent agent)
 {
     return(LogEventData.Search <LogEventData>(filter, orderBy, count, agent));
 }
Exemplo n.º 21
0
 public static LogEventData[] SelectAll()
 {
     return(LogEventData.SelectAll <LogEventData>());
 }
Exemplo n.º 22
0
 public static LogEventData[] SelectListWhere(LogEventDataSearchFilter filter)
 {
     return(LogEventData.Select <LogEventData>(filter));
 }
Exemplo n.º 23
0
 public static LogEventData[] SelectListWhere(LogEventDataSearchFilter filter, DatabaseAgent agent)
 {
     return(LogEventData.Select <LogEventData>(filter, agent));
 }
Exemplo n.º 24
0
 public static T[] SelectPropertyList <T>(LogEventDataFields field, DaoSearchFilter filter, DatabaseAgent agent)
 {
     return(LogEventData.SelectPropertyList <LogEventData, T>(field, filter, agent));
 }