File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
src/EntityFrameworkCore.Generator.Core Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,9 @@ private string ResolveConnectionString(DatabaseOptions database)
412412 case DatabaseProviders . Sqlite :
413413 ConfigureSqliteServices ( services ) ;
414414 break ;
415+ case DatabaseProviders . Oracle :
416+ ConfigureOracleServices ( services ) ;
417+ break ;
415418 default :
416419 throw new NotSupportedException ( $ "The specified provider '{ provider } ' is not supported.") ;
417420 }
@@ -452,5 +455,11 @@ private void ConfigureSqliteServices(IServiceCollection services)
452455 var designTimeServices = new Microsoft . EntityFrameworkCore . Sqlite . Design . Internal . SqliteDesignTimeServices ( ) ;
453456 designTimeServices . ConfigureDesignTimeServices ( services ) ;
454457 }
458+
459+ private void ConfigureOracleServices ( IServiceCollection services )
460+ {
461+ var designTimeServices = new Oracle . EntityFrameworkCore . Design . Internal . OracleDesignTimeServices ( ) ;
462+ designTimeServices . ConfigureDesignTimeServices ( services ) ;
463+ }
455464 }
456465}
Original file line number Diff line number Diff line change 2727 <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 5.0.4" />
2828 <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 5.0.4" />
2929 <PackageReference Include =" Npgsql.EntityFrameworkCore.PostgreSQL" Version =" 5.0.2" />
30+ <PackageReference Include =" Oracle.EntityFrameworkCore" Version =" 5.21.1" />
3031 <PackageReference Include =" YamlDotNet" Version =" 9.1.4" />
3132 </ItemGroup >
3233
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ public enum DatabaseProviders
2525 /// <summary>
2626 /// The sqlite provider
2727 /// </summary>
28- Sqlite
28+ Sqlite ,
29+
30+ /// <summary>
31+ /// The Oracle provider
32+ /// </summary>
33+ Oracle
2934 }
3035}
You can’t perform that action at this time.
0 commit comments