fork from 1.3
This commit is contained in:
9
FreeSR.Database/Configuration/DatabaseConfiguration.cs
Normal file
9
FreeSR.Database/Configuration/DatabaseConfiguration.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace FreeSR.Database.Configuration
|
||||
{
|
||||
public class DatabaseConfiguration
|
||||
{
|
||||
public string ConnectionString { get; set; }
|
||||
public string Name { get; set; }
|
||||
public DatabaseEntry[] Entries { get; set; }
|
||||
}
|
||||
}
|
||||
8
FreeSR.Database/Configuration/DatabaseEntry.cs
Normal file
8
FreeSR.Database/Configuration/DatabaseEntry.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace FreeSR.Database.Configuration
|
||||
{
|
||||
public class DatabaseEntry
|
||||
{
|
||||
public string CollectionName { get; set; }
|
||||
public DatabaseType Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace FreeSR.Database.Configuration
|
||||
{
|
||||
using FreeSR.Shared.Exceptions;
|
||||
|
||||
internal class DatabaseMisconfiguredException : ServerInitializationException
|
||||
{
|
||||
public DatabaseMisconfiguredException(string message) : base(message)
|
||||
{
|
||||
// DatabaseMisconfiguredException.
|
||||
}
|
||||
}
|
||||
}
|
||||
7
FreeSR.Database/Configuration/DatabaseType.cs
Normal file
7
FreeSR.Database/Configuration/DatabaseType.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace FreeSR.Database.Configuration
|
||||
{
|
||||
public enum DatabaseType
|
||||
{
|
||||
Account
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user