Ejemplo n.º 1
0
 /// <summary>
 /// Adds an <see cref="IEvaluatableExpressionFilterPlugin"/>.
 /// </summary>
 /// <param name="builder">Options builder.</param>
 /// <typeparam name="T">Type of the plugin.</typeparam>
 /// <typeparam name="TPlugin">Type of the plugin.</typeparam>
 /// <returns>The provided <paramref name="builder"/>.</returns>
 /// <exception cref="ArgumentNullException"><paramref name="builder"/> is <c>null</c>.</exception>
 public static DbContextOptionsBuilder <T> AddEvaluatableExpressionFilterPlugin <T, TPlugin>(this DbContextOptionsBuilder <T> builder)
     where T : DbContext
     where TPlugin : IEvaluatableExpressionFilterPlugin
 {
     builder.AddEvaluatableExpressionFilterPlugin <TPlugin>();
     return(builder);
 }