feat:基于furion搭建
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//using Furion.DatabaseAccessor;
|
||||
//using Microsoft.EntityFrameworkCore;
|
||||
|
||||
//namespace Yi.Furion.Rbac.EntityFramework.Core;
|
||||
|
||||
//[AppDbContext("Yi.Furion.Rbac", DbProvider.Sqlite)]
|
||||
//public class DefaultDbContext : AppDbContext<DefaultDbContext>
|
||||
//{
|
||||
// public DefaultDbContext(DbContextOptions<DefaultDbContext> options) : base(options)
|
||||
// {
|
||||
// }
|
||||
//}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Furion;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Yi.Furion.Rbac.EntityFramework.Core;
|
||||
|
||||
public class Startup : AppStartup
|
||||
{
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
//services.AddDatabaseAccessor(options =>
|
||||
//{
|
||||
// options.AddDbPool<DefaultDbContext>();
|
||||
//}, "Yi.Furion.Rbac.Database.Migrations");
|
||||
System.Console.WriteLine();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Yi.Furion.Rbac.Core\Yi.Furion.Rbac.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user