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