Skip to content

Commit

Permalink
修改代码 支持linux
Browse files Browse the repository at this point in the history
  • Loading branch information
toolgood committed Sep 26, 2021
1 parent 162dd88 commit 4806e7b
Show file tree
Hide file tree
Showing 211 changed files with 11 additions and 3,763 deletions.
8 changes: 5 additions & 3 deletions Source/ToolGood.SqlOnline.Configs/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public class Config
public static SqlHelper WriteHelper {
get {
if (_dbHelper == null || _dbHelper._IsDisposed) {
var path = "App_Data\\setting.sav";
var path = Path.GetFullPath("App_Data/setting.sav");

_dbHelper = SqlHelperFactory.OpenSqliteFile(path);
}
return _dbHelper;
Expand All @@ -31,7 +32,8 @@ public static SqlHelper WriteHelper {
public static SqlHelper ReadHelper {
get {
if (_readHelper == null || _readHelper._IsDisposed) {
var path = "Data Source=App_Data\\setting.sav;Mode=ReadOnly;";
var path2 = Path.GetFullPath("App_Data/setting.sav");
var path = $"Data Source={path2};Mode=ReadOnly;";
_readHelper = SqlHelperFactory.OpenDatabase(path, SqlType.SQLite);
}
return _readHelper;
Expand All @@ -43,7 +45,7 @@ public static SqlHelper ReadHelper {
public static SqlHelper GetLogSqlHelper(DateTime date)
{
if (_logHelper == null || _logHelper._IsDisposed) {
var path = @$"App_Data\SqlQueryLog\{date.ToString("yyyyMM")}.sav";
var path =Path.GetFullPath( $"App_Data/SqlQueryLog/{date.ToString("yyyyMM")}.sav");
if (File.Exists(path) == false) {
Directory.CreateDirectory(Path.GetDirectoryName(path));
File.Create(path).Close();
Expand Down
25 changes: 0 additions & 25 deletions Source/ToolGood.SqlOnline.WwwRootHelper/Program.cs

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions Source/ToolGood.SqlOnline.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ToolGood.WebCommon", "ToolG
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ToolGood.Common", "ToolGood.Common\ToolGood.Common.csproj", "{CFD9CD45-82ED-4620-A346-BB5B89DC9755}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ToolGood.SqlOnline.WwwRootHelper", "ToolGood.SqlOnline.WwwRootHelper\ToolGood.SqlOnline.WwwRootHelper.csproj", "{C9197ACE-B1E0-4ED7-8630-136B23A2DF57}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ToolGood.SqlOnline.Datas.Databases", "ToolGood.SqlOnline.Datas.Databases\ToolGood.SqlOnline.Datas.Databases.csproj", "{74C5C066-D373-4B6B-B8A7-62A762F352AB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ToolGood.SqlOnline.Dtos", "ToolGood.SqlOnline.Dtos\ToolGood.SqlOnline.Dtos.csproj", "{635550A3-8CFD-4BCF-A32B-31CCFF53B606}"
Expand Down Expand Up @@ -81,10 +79,6 @@ Global
{CFD9CD45-82ED-4620-A346-BB5B89DC9755}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CFD9CD45-82ED-4620-A346-BB5B89DC9755}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CFD9CD45-82ED-4620-A346-BB5B89DC9755}.Release|Any CPU.Build.0 = Release|Any CPU
{C9197ACE-B1E0-4ED7-8630-136B23A2DF57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9197ACE-B1E0-4ED7-8630-136B23A2DF57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9197ACE-B1E0-4ED7-8630-136B23A2DF57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9197ACE-B1E0-4ED7-8630-136B23A2DF57}.Release|Any CPU.Build.0 = Release|Any CPU
{74C5C066-D373-4B6B-B8A7-62A762F352AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74C5C066-D373-4B6B-B8A7-62A762F352AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74C5C066-D373-4B6B-B8A7-62A762F352AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -129,7 +123,6 @@ Global
{E50C3016-7E7F-45F5-A4A1-52B247AC12DF} = {63C5D570-3FC6-4C6D-8199-58A7B83643B4}
{6B61088B-F421-4E4B-A5E5-9B2161053BC8} = {1DCE0288-9F5F-4BBD-BF28-EB8E5C5066C7}
{CFD9CD45-82ED-4620-A346-BB5B89DC9755} = {1DCE0288-9F5F-4BBD-BF28-EB8E5C5066C7}
{C9197ACE-B1E0-4ED7-8630-136B23A2DF57} = {2B5C67E3-CA79-4437-BAEC-98FFCEA8CE5F}
{74C5C066-D373-4B6B-B8A7-62A762F352AB} = {F0F18071-52F7-47AE-8FFA-935AC8B078A5}
{635550A3-8CFD-4BCF-A32B-31CCFF53B606} = {F0F18071-52F7-47AE-8FFA-935AC8B078A5}
{B191DC03-DB1E-49B7-843D-A1851E3BDBBA} = {1DCE0288-9F5F-4BBD-BF28-EB8E5C5066C7}
Expand Down
Empty file.
18 changes: 0 additions & 18 deletions Source/ToolGood.SqlOnline/Controllers/wwwroot/_/css/dbs.css.cs

This file was deleted.

18 changes: 0 additions & 18 deletions Source/ToolGood.SqlOnline/Controllers/wwwroot/_/css/global.css.cs

This file was deleted.

18 changes: 0 additions & 18 deletions Source/ToolGood.SqlOnline/Controllers/wwwroot/_/css/sqls.css.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4806e7b

Please sign in to comment.