Updated
This commit is contained in:
16
SqlTester/SqlTester/Program.cs
Normal file
16
SqlTester/SqlTester/Program.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace EonaCat.Sql
|
||||
{
|
||||
public static class SqlTest
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
SqlHelper.IsWebSafe("SELECT * FROM alert('x');", out string errors);
|
||||
var test = new EonaCat.Logger.Managers.LogManager();
|
||||
test.Write("test", EonaCat.Logger.ELogType.ERROR);
|
||||
Console.WriteLine(errors);
|
||||
}
|
||||
}
|
||||
}
|
24
SqlTester/SqlTester/SqlTester.csproj
Normal file
24
SqlTester/SqlTester/SqlTester.csproj
Normal file
@@ -0,0 +1,24 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="EonaCat.Sql">
|
||||
<HintPath>..\..\..\EonaCat.Sql\bin\Release\netstandard2.1\EonaCat.Sql.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EonaCatLogger">
|
||||
<HintPath>..\..\..\EonaCatLogger\bin\Release\net6.0\EonaCatLogger.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
25
SqlTester/SqlTester/SqlTester.sln
Normal file
25
SqlTester/SqlTester/SqlTester.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.32112.339
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SqlTester", "SqlTester.csproj", "{D5E2E874-0FD2-4481-BE8C-517C382342AE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{D5E2E874-0FD2-4481-BE8C-517C382342AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D5E2E874-0FD2-4481-BE8C-517C382342AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D5E2E874-0FD2-4481-BE8C-517C382342AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D5E2E874-0FD2-4481-BE8C-517C382342AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {7E7E2E90-9289-4D68-A918-A465BE4315AF}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
Reference in New Issue
Block a user