diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Yi.Framework.ApiMicroservice.csproj b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Yi.Framework.ApiMicroservice.csproj
index f721809f..d7d79b45 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Yi.Framework.ApiMicroservice.csproj
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Yi.Framework.ApiMicroservice.csproj
@@ -20,6 +20,16 @@
+
+
+
+
+
+
+ Always
+
+
+
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json
index cd9cd1cd..a57d0d34 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Production.json
@@ -1,5 +1,5 @@
{
- "StartUrl": "http://localohost:19001",
+ "StartUrl": "http://*:19001",
"Logging": {
"LogLevel": {
"Default": "Information",
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json
index 3898cb29..c7ae2d34 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/appsettings.Staging.json
@@ -1,5 +1,5 @@
{
- "StartUrl": "http://localohost:19001",
+ "StartUrl": "http://*:19001",
"Logging": {
"LogLevel": {
"Default": "Information",
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db
index d9f86808..1027981e 100644
Binary files a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db and b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db differ
diff --git a/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs b/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs
index 390cdc8e..e58e9d27 100644
--- a/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Repository/IRepository.cs
@@ -21,8 +21,8 @@ namespace Yi.Framework.Repository
public Task> GetListAsync(QueryCondition pars);
public Task DeleteByLogicAsync(List ids);
public Task UpdateIgnoreNullAsync(T entity);
- public Task> UseSqlAsync(string sql);
- public Task UseSqlAsync(string sql);
+ public Task> UseSqlAsync(string sql, object parameters = null);
+ public Task UseSqlAsync(string sql, object parameters = null);
ISugarQueryable QueryConditionHandler(QueryCondition pars);
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs b/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs
index cfa20c1f..6a27d7ee 100644
--- a/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Repository/Repository.cs
@@ -42,24 +42,21 @@ namespace Yi.Framework.Repository
///
///
///
- public async Task> UseSqlAsync(string sql)
+ public async Task> UseSqlAsync(string sql, object parameters = null)
{
- return await _Db.Ado.SqlQueryAsync(sql);
+ return await _Db.Ado.SqlQueryAsync(sql, parameters);
}
-
///
/// 执行增删改sql返回状态
///
///
///
- public async Task UseSqlAsync(string sql)
+ public async Task UseSqlAsync(string sql, object parameters)
{
- return await _Db.Ado.ExecuteCommandAsync(sql)>0;
+ return await _Db.Ado.ExecuteCommandAsync(sql, parameters) >0;
}
-
-
///
/// 添加返回实体
///