update readme

This commit is contained in:
zedy
2023-02-02 18:46:00 +08:00
parent 3bb6bf89b8
commit 2a67d21396
2 changed files with 58 additions and 2 deletions

View File

@@ -23,7 +23,10 @@ var builder = WebApplication.CreateBuilder(args);
builder.Logging.AddConsole();
// Configure SQL Server
// Configure SQL Server (Locally)
// Microsoft.eShopWeb.Infrastructure.Dependencies.ConfigureServices(builder.Configuration, builder.Services);
// Configure SQL Server (Azd template)
var credential = new ChainedTokenCredential(new AzureDeveloperCliCredential(), new DefaultAzureCredential());
builder.Configuration.AddAzureKeyVault(new Uri(builder.Configuration["AZURE_KEY_VAULT_ENDPOINT"]), credential);
builder.Services.AddDbContext<CatalogContext>(c =>