订单微服务实体实现

This commit is contained in:
administrator committed 2024-08-29 23:07:14 +08:00
1 parent b0b9491dfe
commit 2201f36422
69 files changed
+1042 -67

No files matched your search

@@ -0,0 +1,16 @@
// Copyright (c) HelloShop Corporation. All rights reserved.
// See the license file in the project root for more information.
using HelloShop.OrderingService.Infrastructure;
using HelloShop.ServiceDefaults.Infrastructure;
namespace HelloShop.OrderingService.DataSeeding
{
public class OrderingDataSeedingProvider(OrderingServiceDbContext dbContext) : IDataSeedingProvider
{
public async Task SeedingAsync(IServiceProvider serviceProvider, CancellationToken cancellationToken = default)
{
await dbContext.Database.EnsureCreatedAsync(cancellationToken);
}
}
}