本文整理汇总了C#中BackendConfiguration类的典型用法代码示例。如果您正苦于以下问题:C# BackendConfiguration类的具体用法?C# BackendConfiguration怎么用?C# BackendConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BackendConfiguration类属于命名空间,在下文中一共展示了BackendConfiguration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "MsSql";
backend.ProviderName = "System.Data.SqlClient";
return backend;
}
示例2: MySqlDbContext
public MySqlDbContext(
string connection,
BackendConfiguration backendConfiguration,
MetadataSource metadataSource)
: base(connection, backendConfiguration, metadataSource)
{
}
示例3: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "Oracle";
backend.ProviderName = "Oracle.ManagedDataAccess.Client";
return backend;
}
示例4: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "mysql";
backend.ProviderName = "MySql.Data.MySqlClient";
return backend;
}
示例5: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
var backend = new BackendConfiguration { Backend = "MsSql", ProviderName = "System.Data.SqlClient" };
backend.Logging.MetricStoreSnapshotInterval = 0;
backend.Runtime.SupportConcurrentThreadsInScope = true;
return backend;
}
示例6: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
var backend = new BackendConfiguration { Backend = "MySql", ProviderName = "MySql.Data.MySqlClient" };
CustomizeBackendConfiguration(ref backend);
return backend;
}
示例7: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
var backendConfig = new BackendConfiguration()
{
Backend = "MsSql",
ProviderName = "System.Data.SqlClient",
};
return backendConfig;
}
示例8: GetBackEndConfig
private static BackendConfiguration GetBackEndConfig()
{
var config = new BackendConfiguration();
config.Backend = "MySql";
config.ProviderName = "MySql.Data.MySqlClient";
return config;
}
示例9: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "SQLite";
backend.ProviderName = "System.Data.SQLite";
CustomizeBackendConfiguration(ref backend);
return backend;
}
示例10: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "MsSql";
backend.ProviderName = "System.Data.SqlClient";
backend.Logging.MetricStoreSnapshotInterval = 0;
CustomizeBackendConfiguration(ref backend);
return backend;
}
示例11: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "MsSql";
backend.ProviderName = "System.Data.SqlClient";
backend.Logging.MetricStoreSnapshotInterval = 0;
backend.ConnectionPool.IsolationLevel = IsolationLevel.ReadUncommitted;
CustomizeBackendConfiguration(ref backend);
return backend;
}
示例12: GetBackendConfiguration
public static BackendConfiguration GetBackendConfiguration()
{
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "MsSql";
backend.ProviderName = "System.Data.SqlClient";
backend.Logging.LogEvents = LoggingLevel.All;
backend.Logging.LogEventsToSysOut = true;
backend.Logging.EventStoreCapacity = 10000;
backend.Logging.MetricStoreCapacity = 3600;
backend.Logging.Downloader.Filename = "c:\\testrun";
backend.Logging.Downloader.EventBinary = true;
backend.Logging.Downloader.MetricBinary = true;
CustomizeBackendConfiguration(ref backend);
return backend;
}
示例13: WorkflowDurableInstancingDataContext
public WorkflowDurableInstancingDataContext(string connectionString, BackendConfiguration backend, MetadataSource metadataSource)
: base(connectionString, backend, metadataSource)
{
var schemaHandler = GetSchemaHandler();
string script = null;
if (schemaHandler.DatabaseExists())
{
script = schemaHandler.CreateUpdateDDLScript(null);
}
else
{
schemaHandler.CreateDatabase();
script = schemaHandler.CreateDDLScript();
}
if (!String.IsNullOrEmpty(script))
{
schemaHandler.ExecuteDDLScript(script);
}
}
示例14: DataContext
static DataContext() {
MetadataContainer = new DataMetadataSource().GetModel();
BackendConfiguration = new BackendConfiguration();
#if DEBUG
// Debug data access by logging queries
BackendConfiguration.Logging.LogEvents = LoggingLevel.Normal;
BackendConfiguration.Logging.StackTrace = true;
BackendConfiguration.Logging.EventStoreCapacity = 10000;
BackendConfiguration.Logging.MetricStoreCapacity = 3600;
BackendConfiguration.Logging.MetricStoreSnapshotInterval = 1000;
BackendConfiguration.Logging.Downloader.EventBinary = true;
BackendConfiguration.Logging.Downloader.MetricBinary = true;
BackendConfiguration.Logging.Downloader.Filename = "C:\\Temp\\DataAccess";
BackendConfiguration.Logging.Downloader.MaxFileSizeKB = 1000;
BackendConfiguration.Logging.Downloader.NumberOfBackups = 3;
BackendConfiguration.Logging.Downloader.EventPollSeconds = 1;
BackendConfiguration.Logging.Downloader.MetricPollSeconds = 1;
#else
BackendConfiguration.Logging.LogEvents = LoggingLevel.Errors;
#endif
}
示例15: EntitiesModel
public EntitiesModel(BackendConfiguration backendConfiguration)
:base(connectionStringName, backendConfiguration, metadataSource)
{ }