private string GetTableName(AuditEvent auditEvent)
 {
     if (TableNameBuilder != null)
     {
         return(TableNameBuilder.Invoke(auditEvent));
     }
     return("event");
 }
Exemple #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)));
 }
Exemple #3
0
 private string GetTableName(AuditEvent auditEvent)
 {
     return(TableNameBuilder?.Invoke(auditEvent) ?? auditEvent.GetType().Name);
 }