数据库配置修改为tianyi

This commit is contained in:
2023-04-17 14:48:26 +08:00
parent edf4e9310d
commit a86dd288c2
4 changed files with 4 additions and 10 deletions

View File

@@ -4,6 +4,6 @@
"ip": "localhost", "ip": "localhost",
"port": 6379, "port": 6379,
"password": "05jWEoJa8v", "password": "05jWEoJa8v",
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=6" "RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=7"
} }
} }

View File

@@ -4,7 +4,7 @@
"DBType": "PostgreSQL", //MySql;SqlServer;Oracle;PostgreSQL;Dm;Kdbndp;Sqlite; "DBType": "PostgreSQL", //MySql;SqlServer;Oracle;PostgreSQL;Dm;Kdbndp;Sqlite;
"Host": "localhost", "Host": "localhost",
"Port": "5432", "Port": "5432",
"DBName": "tnb_bas", "DBName": "tianyi_bas",
"UserName": "totong", "UserName": "totong",
"Password": "IPANyxGSKxIXg0dBM", "Password": "IPANyxGSKxIXg0dBM",
//SqlServer //SqlServer

View File

@@ -318,13 +318,7 @@ public class DbLinkService : IDbLinkService, IDynamicApiController, ITransient
[NonAction] [NonAction]
public async Task<DbLinkEntity> GetInfo(string id) public async Task<DbLinkEntity> GetInfo(string id)
{ {
var model = await _memCache.GetOrCreateAsync($"DbLink_{id}", async entry => return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
{
//entry.AbsoluteExpiration = DateTime.Now.AddMinutes(60);
//entry.SlidingExpiration = TimeSpan.FromSeconds(-1);
return await _repository.AsSugarClient().CopyNew().Queryable<DbLinkEntity>().FirstAsync(m => m.Id == id && m.DeleteMark == null);
});
return model;
} }
#endregion #endregion
} }

View File

@@ -1513,7 +1513,7 @@ public class CodeGenService : IDynamicApiController, ITransient
IsFixed = frondEndGenConfig.IsFixed, IsFixed = frondEndGenConfig.IsFixed,
}, builderAction: builder => }, builderAction: builder =>
{ {
builder.AddUsing("Tnb.VisualDev.Engine.Model.CodeGen"); builder.AddUsing("JNPF.VisualDev.Engine.Model.CodeGen");
builder.AddAssemblyReferenceByName("Tnb.VisualDev.Engine"); builder.AddAssemblyReferenceByName("Tnb.VisualDev.Engine");
}); });
var dirPath = new DirectoryInfo(targetPathList[i]).Parent.FullName; var dirPath = new DirectoryInfo(targetPathList[i]).Parent.FullName;