-
Couldn't load subscription status.
- Fork 712
Make it easier to choose Azure SQL SKU #8887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
5ad0d72
c4d6734
d2257c1
ff1fa57
4202efa
d090962
9acc9ad
177b074
a6de371
73d5043
e0d27f7
d63a90c
56acbd7
93847b8
d5b3c65
a0119a3
ee95da2
9ff69c1
d99070d
76e5648
89ecbfe
a891929
de52a70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,13 @@ namespace Aspire.Hosting.Azure; | |
| public class AzureSqlDatabaseResource(string name, string databaseName, AzureSqlServerResource parent) | ||
| : Resource(name), IResourceWithParent<AzureSqlServerResource>, IResourceWithConnectionString | ||
| { | ||
| /// <summary> | ||
| /// Free Azure SQL database offer | ||
| /// </summary> | ||
| public const string FREE_SKU = "Free"; | ||
|
|
||
| private string _skuName = FREE_SKU; | ||
|
|
||
| /// <summary> | ||
| /// Gets the parent Azure SQL Database (server) resource. | ||
| /// </summary> | ||
|
|
@@ -32,6 +39,15 @@ public class AzureSqlDatabaseResource(string name, string databaseName, AzureSql | |
| /// </summary> | ||
| public string DatabaseName { get; } = ThrowIfNullOrEmpty(databaseName); | ||
|
|
||
| /// <summary> | ||
| /// Gets or Sets the database SKU name | ||
| /// </summary> | ||
| internal string SkuName | ||
|
||
| { | ||
| get { return _skuName; } | ||
| set { ThrowIfNullOrEmpty(value); _skuName = value; } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets the inner SqlServerDatabaseResource resource. | ||
| /// | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.