Example #1
0
 public static CapOptions UseEntityFramework <TContext>(this CapOptions options)
     where TContext : DbContext
 {
     return(options.UseEntityFramework <TContext>(opt =>
     {
         opt.DbContextType = typeof(TContext);
     }));
 }
 public static CapOptions UseEntityFramework <TContext>(this CapOptions options)
     where TContext : DbContext
 {
     return(options.UseEntityFramework <TContext>(opt => { }));
 }