数据库配置修改为tianyi
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
"ip": "localhost",
|
||||
"port": 6379,
|
||||
"password": "05jWEoJa8v",
|
||||
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=6"
|
||||
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=7"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
"DBType": "PostgreSQL", //MySql;SqlServer;Oracle;PostgreSQL;Dm;Kdbndp;Sqlite;
|
||||
"Host": "localhost",
|
||||
"Port": "5432",
|
||||
"DBName": "tnb_bas",
|
||||
"DBName": "tianyi_bas",
|
||||
"UserName": "totong",
|
||||
"Password": "IPANyxGSKxIXg0dBM",
|
||||
//SqlServer
|
||||
|
||||
@@ -318,13 +318,7 @@ public class DbLinkService : IDbLinkService, IDynamicApiController, ITransient
|
||||
[NonAction]
|
||||
public async Task<DbLinkEntity> GetInfo(string id)
|
||||
{
|
||||
var model = await _memCache.GetOrCreateAsync($"DbLink_{id}", async entry =>
|
||||
{
|
||||
//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
|
||||
}
|
||||
@@ -1513,7 +1513,7 @@ public class CodeGenService : IDynamicApiController, ITransient
|
||||
IsFixed = frondEndGenConfig.IsFixed,
|
||||
}, builderAction: builder =>
|
||||
{
|
||||
builder.AddUsing("Tnb.VisualDev.Engine.Model.CodeGen");
|
||||
builder.AddUsing("JNPF.VisualDev.Engine.Model.CodeGen");
|
||||
builder.AddAssemblyReferenceByName("Tnb.VisualDev.Engine");
|
||||
});
|
||||
var dirPath = new DirectoryInfo(targetPathList[i]).Parent.FullName;
|
||||
|
||||
Reference in New Issue
Block a user