Browse Source

fixed entityframework rename table name prefix bug. #84

master
Savorboard 6 years ago
parent
commit
7ec498063a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/DotNetCore.CAP.MySql/CAP.Options.Extensions.cs

+ 1
- 1
src/DotNetCore.CAP.MySql/CAP.Options.Extensions.cs View File

@@ -25,7 +25,7 @@ namespace Microsoft.Extensions.DependencyInjection
public static CapOptions UseEntityFramework<TContext>(this CapOptions options) public static CapOptions UseEntityFramework<TContext>(this CapOptions options)
where TContext : DbContext where TContext : DbContext
{ {
return options.UseEntityFramework<TContext>(opt => { opt.DbContextType = typeof(TContext); });
return options.UseEntityFramework<TContext>(opt => { });
} }


public static CapOptions UseEntityFramework<TContext>(this CapOptions options, Action<EFOptions> configure) public static CapOptions UseEntityFramework<TContext>(this CapOptions options, Action<EFOptions> configure)


Loading…
Cancel
Save