当前位置: 首页>>代码示例>>C#>>正文


C# BackendConfiguration类代码示例

本文整理汇总了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;
		}
开发者ID:Jarolim,项目名称:AllMyHomeworkForTelerikAcademy,代码行数:7,代码来源:EntitiesModel.cs

示例2: MySqlDbContext

 public MySqlDbContext(
     string connection,
     BackendConfiguration backendConfiguration,
     MetadataSource metadataSource)
     : base(connection, backendConfiguration, metadataSource)
 {
 }
开发者ID:Team-Tower-Databases-Online,项目名称:Databases-Teamwork-2015,代码行数:7,代码来源:EntitiesModel.cs

示例3: GetBackendConfiguration

 public static BackendConfiguration GetBackendConfiguration()
 {
     BackendConfiguration backend = new BackendConfiguration();
     backend.Backend = "Oracle";
     backend.ProviderName = "Oracle.ManagedDataAccess.Client";
     return backend;
 }
开发者ID:BRozas,项目名称:immobilis,代码行数:7,代码来源:FluentModel.cs

示例4: GetBackendConfiguration

        public static BackendConfiguration GetBackendConfiguration()
        {
            BackendConfiguration backend = new BackendConfiguration();
            backend.Backend = "mysql";
            backend.ProviderName = "MySql.Data.MySqlClient";

            return backend;
        }
开发者ID:Europium-TA,项目名称:DB-Project,代码行数:8,代码来源:FluentModel.cs

示例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;
        }
开发者ID:KatoTek,项目名称:Jobs,代码行数:8,代码来源:EntitiesModel.cs

示例6: GetBackendConfiguration

        public static BackendConfiguration GetBackendConfiguration()
        {
            var backend = new BackendConfiguration { Backend = "MySql", ProviderName = "MySql.Data.MySqlClient" };

            CustomizeBackendConfiguration(ref backend);

            return backend;
        }
开发者ID:Team-Tower-Databases-Online,项目名称:Databases-Teamwork-2015,代码行数:8,代码来源:EntitiesModel.cs

示例7: GetBackendConfiguration

 public static BackendConfiguration GetBackendConfiguration()
 {
     var backendConfig = new BackendConfiguration()
     {
         Backend = "MsSql",
         ProviderName = "System.Data.SqlClient",                
     };
     return backendConfig;
 }
开发者ID:jhuntsman,项目名称:EasyNetQ.Wf,代码行数:9,代码来源:WorkflowDurableInstancingDataContext.cs

示例8: GetBackEndConfig

        private static BackendConfiguration GetBackEndConfig()
        {
            var config = new BackendConfiguration();

            config.Backend = "MySql";
            config.ProviderName = "MySql.Data.MySqlClient";

            return config;
        }
开发者ID:Team-Neptunium,项目名称:Databases-Team-Neptunium,代码行数:9,代码来源:BoardgameSimulatorMySqlDbContext.cs

示例9: GetBackendConfiguration

		public static BackendConfiguration GetBackendConfiguration()
		{
			BackendConfiguration backend = new BackendConfiguration();
			backend.Backend = "SQLite";
			backend.ProviderName = "System.Data.SQLite";
		
			CustomizeBackendConfiguration(ref backend);
		
			return backend;
		}
开发者ID:seriussoft,项目名称:TimeKeeper,代码行数:10,代码来源:EntitiesModel.cs

示例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;
		}
开发者ID:dongarnica,项目名称:data-access-samples,代码行数:11,代码来源:UsersModel.cs

示例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;
		}
开发者ID:edikep2000,项目名称:bscomeval,代码行数:12,代码来源:EntitiesModel.cs

示例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;
		}
开发者ID:dongarnica,项目名称:data-access-samples,代码行数:17,代码来源:EntitiesModel.cs

示例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);
     }
 }
开发者ID:jhuntsman,项目名称:EasyNetQ.Wf,代码行数:19,代码来源:WorkflowDurableInstancingDataContext.cs

示例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
        }
开发者ID:cmarfia,项目名称:KalikoCMS.Core,代码行数:22,代码来源:DataContext.cs

示例15: EntitiesModel

		public EntitiesModel(BackendConfiguration backendConfiguration)
			:base(connectionStringName, backendConfiguration, metadataSource)
		{ }
开发者ID:Jarolim,项目名称:AllMyHomeworkForTelerikAcademy,代码行数:3,代码来源:EntitiesModel.cs


注:本文中的BackendConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。