Пример #1
0
 public static void QuickLog <C>(this ILogger <C> logger, DbOperationType dbOperationType, Entity entity, int id)
 => logger.LogInformation(string.Format(dbOperationType.Description(), entity.GetType().Name, id));
Пример #2
0
 public static void QuickLog <C>(this ILogger <C> logger, DbOperationType dbOperationType, Type type, int id)
 => logger.LogInformation(string.Format(dbOperationType.Description(), type.Name, id));