private string GetTableName(AuditEvent auditEvent)
 {
     if (TableNameBuilder != null)
     {
         return(TableNameBuilder.Invoke(auditEvent));
     }
     return("event");
 }
Beispiel #2
0
 private string GetFullTableName(AuditEvent auditEvent)
 {
     return(SchemaBuilder != null
         ? string.Format("[{0}].[{1}]", SchemaBuilder.Invoke(auditEvent), TableNameBuilder.Invoke(auditEvent))
         : string.Format("[{0}]", TableNameBuilder.Invoke(auditEvent)));
 }
Beispiel #3
0
 private string GetTableName(AuditEvent auditEvent)
 {
     return(TableNameBuilder?.Invoke(auditEvent) ?? auditEvent.GetType().Name);
 }