2023-08-26 04:41:01 +00:00
|
|
|
namespace BotSharp.Abstraction.Repositories;
|
|
|
|
|
|
2023-09-01 22:33:36 +00:00
|
|
|
public class BotSharpDatabaseSettings : DatabaseBasicSettings
|
2023-08-26 04:41:01 +00:00
|
|
|
{
|
|
|
|
|
public string[] Assemblies { get; set; }
|
|
|
|
|
public string FileRepository { get; set; }
|
|
|
|
|
public string MongoDb { get; set; }
|
2023-09-12 22:34:50 +00:00
|
|
|
public string TablePrefix { get; set; }
|
2023-08-26 04:41:01 +00:00
|
|
|
public DbConnectionSetting BotSharp { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-01 22:33:36 +00:00
|
|
|
public class DatabaseBasicSettings
|
2023-08-26 04:41:01 +00:00
|
|
|
{
|
|
|
|
|
public string Default { get; set; }
|
|
|
|
|
public DbConnectionSetting DefaultConnection { get; set; }
|
|
|
|
|
public bool EnableSqlLog { get; set; }
|
|
|
|
|
public bool EnableSensitiveDataLogging { get; set; }
|
|
|
|
|
public bool EnableRetryOnFailure { get; set; }
|
|
|
|
|
public bool UseCamelCase { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DbConnectionSetting
|
|
|
|
|
{
|
|
|
|
|
public string Master { get; set; }
|
|
|
|
|
public string[] Slavers { get; set; }
|
|
|
|
|
|
|
|
|
|
public DbConnectionSetting()
|
|
|
|
|
{
|
|
|
|
|
Slavers = new string[0];
|
|
|
|
|
}
|
|
|
|
|
}
|