mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
34 lines
1.4 KiB
C#
34 lines
1.4 KiB
C#
using System.Data;
|
|
using System.Data.Linq;
|
|
using System.Data.Linq.Mapping;
|
|
|
|
namespace Roblox.Configuration
|
|
{
|
|
[Database(Name = "ConfigurationDatabase")]
|
|
public class ConfigurationDataClassesDataContext : DataContext
|
|
{
|
|
private static MappingSource mappingSource = new AttributeMappingSource();
|
|
|
|
public ConfigurationDataClassesDataContext()
|
|
: base(global::Roblox.Configuration.Properties.Settings.Default.ConfigurationDatabaseConnectionString, mappingSource)
|
|
{}
|
|
public ConfigurationDataClassesDataContext(string connection)
|
|
: base(connection, mappingSource)
|
|
{}
|
|
public ConfigurationDataClassesDataContext(IDbConnection connection)
|
|
: base(connection, mappingSource)
|
|
{}
|
|
public ConfigurationDataClassesDataContext(string connection, MappingSource mappingSource)
|
|
: base(connection, mappingSource)
|
|
{}
|
|
public ConfigurationDataClassesDataContext(IDbConnection connection, MappingSource mappingSource)
|
|
: base(connection, mappingSource)
|
|
{}
|
|
|
|
public Table<PopulatedGroup> PopulatedGroups => GetTable<PopulatedGroup>();
|
|
public Table<Setting> Settings => GetTable<Setting>();
|
|
public Table<ConnectionString> ConnectionStrings => GetTable<ConnectionString>();
|
|
public Table<EndpointAddress> EndpointAddresses => GetTable<EndpointAddress>();
|
|
}
|
|
}
|