當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。