16 lines
536 B
C#
16 lines
536 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Design;
|
|
|
|
namespace AS1024.GeoFeed.Core.GeoFeedLocalCache
|
|
{
|
|
public class GeoFeedDesignTimeMigration : IDesignTimeDbContextFactory<GeoFeedCacheDbContext>
|
|
{
|
|
public GeoFeedCacheDbContext CreateDbContext(string[] args)
|
|
{
|
|
var builder = new DbContextOptionsBuilder<GeoFeedCacheDbContext>();
|
|
builder.UseSqlite("Data Source=migratedb.db");
|
|
return new GeoFeedCacheDbContext(builder.Options);
|
|
}
|
|
}
|
|
|
|
} |