コード例 #1
0
ファイル: StorageService.cs プロジェクト: xafdelta/xafdelta
 /// <summary>
 /// Creates the data store provider.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="connectionString"></param>
 /// <returns></returns>
 public IXpoDataStoreProvider CreateDataStoreProvider(IDbConnection connection, string connectionString)
 {
     IXpoDataStoreProvider dataStoreProvider = null;
     var multiDatabase = !string.IsNullOrEmpty(ssConnectionString);
     if (multiDatabase)
     {
         provider = new XafDeltaDataStoreProvider();
         dataStoreProvider = provider;
     }
     return dataStoreProvider;
 }
コード例 #2
0
        /// <summary>
        /// Creates the data store provider.
        /// </summary>
        /// <param name="connection">The connection.</param>
        /// <param name="connectionString"></param>
        /// <returns></returns>
        public IXpoDataStoreProvider CreateDataStoreProvider(IDbConnection connection, string connectionString)
        {
            IXpoDataStoreProvider dataStoreProvider = null;
            var multiDatabase = !string.IsNullOrEmpty(ssConnectionString);

            if (multiDatabase)
            {
                provider          = new XafDeltaDataStoreProvider();
                dataStoreProvider = provider;
            }
            return(dataStoreProvider);
        }