Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Infrastructure.Migrations;
namespace Grand.Infrastructure.Tests;
public class MigrationTest1 : IMigration
{
public int Priority => 0;
public DbVersion Version => new(int.Parse(GrandVersion.MajorVersion), int.Parse(GrandVersion.MinorVersion));
public Guid Identity => Guid.NewGuid();
public string Name => "SampleMigration";
public bool UpgradeProcess(IServiceProvider serviceProvider)
{
return true;
}
}
public class MigrationTest2 : IMigration
{
public int Priority => 0;
public DbVersion Version => new(int.Parse(GrandVersion.MajorVersion) + 1, int.Parse(GrandVersion.MinorVersion));
public Guid Identity => Guid.NewGuid();
public string Name => "SampleMigration";
public bool UpgradeProcess(IServiceProvider serviceProvider)
{
return true;
}
}