2017-08-24 16:18:44 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
public class Config
|
|
|
|
|
{
|
2019-01-20 22:36:42 +08:00
|
|
|
|
public static string GetCurrentProjectPath
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
get
|
|
|
|
|
{
|
2019-04-10 08:32:09 +08:00
|
|
|
|
return Environment.CurrentDirectory.Replace(@"\bin\Debug", "").Replace(@"\netcoreapp2.0","");
|
2019-01-20 22:36:42 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public static string ConnectionString = @"DataSource=" + GetCurrentProjectPath + @"\DataBase\SqlSugar4xTest.sqlite";
|
2017-08-24 16:18:44 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2019-01-20 22:36:42 +08:00
|
|
|
|
|