feat(Immortal) Disabling SQL

This commit is contained in:
2022-03-30 21:28:08 -04:00
parent 4d27140e36
commit 363d6835b8
21 changed files with 427 additions and 132 deletions
+10
View File
@@ -6,6 +6,16 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>TRACE;
NO_SQL;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DefineConstants>TRACE;
NO_SQL;</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0-preview.2.22153.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.0-preview.2.22153.1">
+8 -2
View File
@@ -1,4 +1,8 @@
using Microsoft.EntityFrameworkCore;
#if NO_SQL
#else
using Microsoft.EntityFrameworkCore;
using Model.Website;
using Model.Work.Git;
using Model.Work.Tasks;
@@ -23,4 +27,6 @@ public class DatabaseContext : DbContext {
base.OnModelCreating(modelBuilder);
}
}
}
#endif