Skip to content

Consider renaming AddOracleDatabase. #2646

@IEvangelist

Description

@IEvangelist

There are several variations of database server resources modeled within .NET Aspire. Many of the APIs that exist support chaining from a container/server resource to add a database. The AddDatabase extension lights up for these resource types. Consider the following names:

  • SQL: AddSqlServer and AddDatabase
  • MySQL: AddMySql and AddDatabase
  • Postgres: AddPostgres and AddDatabase
  • MongoDB: AddMongoDB and AddDatabase

Currently, this API stands out as the AddOracleDatabase adds the server resource as a container but not a database as the name might imply:

  • Oracle: AddOracleDatabase and AddDatabase

For the sake of consistency, I propose a rename API as follows:

  • Oracle: AddOracle and AddDatabase
-IResourceBuilder<OracleDatabaseServerResource> AddOracleDatabase
+IResourceBuilder<OracleDatabaseServerResource> AddOracle

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions