mirror of https://github.com/EasyAbp/EShop.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
723 B
27 lines
723 B
using System.Threading.Tasks;
|
|
using Volo.Abp.Data;
|
|
using Volo.Abp.DependencyInjection;
|
|
using Volo.Abp.Guids;
|
|
|
|
namespace EasyAbp.EShop.Plugins.Baskets
|
|
{
|
|
public class BasketsDataSeedContributor : IDataSeedContributor, ITransientDependency
|
|
{
|
|
private readonly IGuidGenerator _guidGenerator;
|
|
|
|
public BasketsDataSeedContributor(
|
|
IGuidGenerator guidGenerator)
|
|
{
|
|
_guidGenerator = guidGenerator;
|
|
}
|
|
|
|
public Task SeedAsync(DataSeedContext context)
|
|
{
|
|
/* Instead of returning the Task.CompletedTask, you can insert your test data
|
|
* at this point!
|
|
*/
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|