Granular permission back end done
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FJPSite.Extensions;
|
||||
|
||||
public static class DbContextExtension
|
||||
{
|
||||
public static bool MigrationApplied(this DbContext context, string migrationName)
|
||||
{
|
||||
return context.Database.GetAppliedMigrations().FirstOrDefault(f => f == migrationName) != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user