public static Configure AzureSubcriptionStorage(this Configure config, string connectionString, bool createSchema, string tableName) { return config.AzureSubscriptionStorage(connectionString, createSchema, tableName); }
/// <summary> /// Configures NHibernate Azure Subscription Storage , Settings etc are read from custom config section /// </summary> /// <param name="config"></param> /// <returns></returns> public static Configure AzureSubscriptionStorage(this Configure config) { var configSection = Configure.GetConfigSection<AzureSubscriptionStorageConfig>(); if (configSection == null) { return config; } return config.AzureSubscriptionStorage(configSection.ConnectionString, configSection.CreateSchema, configSection.TableName); }