|
From: <fab...@us...> - 2009-06-27 14:50:59
|
Revision: 4537
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4537&view=rev
Author: fabiomaulo
Date: 2009-06-27 14:50:53 +0000 (Sat, 27 Jun 2009)
Log Message:
-----------
Fixed TYPO
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICollectionFactoryConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICommandsConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IConnectionConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IMappingsConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IProxyConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IQueryCacheConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ITransactionConfiguration.cs
trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -3,7 +3,7 @@
{
public interface IBatcherConfiguration
{
- IBatcherConfiguration Trough<TBatcher>() where TBatcher : IBatcherFactory;
+ IBatcherConfiguration Through<TBatcher>() where TBatcher : IBatcherFactory;
IDbIntegrationConfiguration Each(short batchSize);
}
}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICacheConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -3,7 +3,7 @@
{
public interface ICacheConfiguration
{
- ICacheConfiguration Trough<TProvider>() where TProvider : ICacheProvider;
+ ICacheConfiguration Through<TProvider>() where TProvider : ICacheProvider;
ICacheConfiguration PrefixingRegionsWith(string regionPrefix);
ICacheConfiguration UsingMinimalPuts();
IFluentSessionFactoryConfiguration WithDefaultExpiration(byte seconds);
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICollectionFactoryConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICollectionFactoryConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICollectionFactoryConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -3,6 +3,6 @@
{
public interface ICollectionFactoryConfiguration
{
- IFluentSessionFactoryConfiguration Trough<TCollecionsFactory>() where TCollecionsFactory : ICollectionTypeFactory;
+ IFluentSessionFactoryConfiguration Through<TCollecionsFactory>() where TCollecionsFactory : ICollectionTypeFactory;
}
}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICommandsConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICommandsConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ICommandsConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -5,7 +5,7 @@
{
ICommandsConfiguration Preparing();
ICommandsConfiguration WithTimeout(int seconds);
- ICommandsConfiguration ConvertingExceptionsTrough<TExceptionConverter>() where TExceptionConverter : ISQLExceptionConverter;
+ ICommandsConfiguration ConvertingExceptionsThrough<TExceptionConverter>() where TExceptionConverter : ISQLExceptionConverter;
ICommandsConfiguration AutoCommentingSql();
IDbIntegrationConfiguration WithHqlToSqlSubstitutions(string csvQuerySubstitutions);
IDbIntegrationConfiguration WithDefaultHqlToSqlSubstitutions();
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IConnectionConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IConnectionConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IConnectionConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -7,8 +7,8 @@
{
public interface IConnectionConfiguration
{
- IConnectionConfiguration Trough<TProvider>() where TProvider : IConnectionProvider;
- IConnectionConfiguration Through<TDriver>() where TDriver : IDriver;
+ IConnectionConfiguration Through<TProvider>() where TProvider : IConnectionProvider;
+ IConnectionConfiguration By<TDriver>() where TDriver : IDriver;
IConnectionConfiguration With(IsolationLevel level);
IConnectionConfiguration Releasing(ConnectionReleaseMode releaseMode);
IDbIntegrationConfiguration Using(string connectionString);
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IMappingsConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IMappingsConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IMappingsConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -2,7 +2,7 @@
{
public interface IMappingsConfiguration
{
- IMappingsConfiguration UsingDefaultSchema(string defaultSchemaName);
IMappingsConfiguration UsingDefaultCatalog(string defaultCatalogName);
+ IFluentSessionFactoryConfiguration UsingDefaultSchema(string defaultSchemaName);
}
}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IProxyConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IProxyConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IProxyConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -4,6 +4,6 @@
public interface IProxyConfiguration
{
IProxyConfiguration DisableValidation();
- IFluentSessionFactoryConfiguration Trough<TProxyFactoryFactory>() where TProxyFactoryFactory : IProxyFactoryFactory;
+ IFluentSessionFactoryConfiguration Through<TProxyFactoryFactory>() where TProxyFactoryFactory : IProxyFactoryFactory;
}
}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IQueryCacheConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IQueryCacheConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IQueryCacheConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -4,6 +4,6 @@
{
public interface IQueryCacheConfiguration
{
- ICacheConfiguration Trough<TFactory>() where TFactory : IQueryCache;
+ ICacheConfiguration Through<TFactory>() where TFactory : IQueryCache;
}
}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ITransactionConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ITransactionConfiguration.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ITransactionConfiguration.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -3,6 +3,6 @@
{
public interface ITransactionConfiguration
{
- IDbIntegrationConfiguration Trough<TFactory>() where TFactory : ITransactionFactory;
+ IDbIntegrationConfiguration Through<TFactory>() where TFactory : ITransactionFactory;
}
}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs
===================================================================
--- trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs 2009-06-27 07:07:50 UTC (rev 4536)
+++ trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs 2009-06-27 14:50:53 UTC (rev 4537)
@@ -1,5 +1,4 @@
using System.Data;
-using System.Data.Common;
using System.Data.SqlClient;
using NHibernate.AdoNet;
using NHibernate.ByteCode.LinFu;
@@ -21,21 +20,37 @@
// Using the Configuration class the user can add mappings and configure listeners
IFluentSessionFactoryConfiguration sfc= null;
sfc.Named("SomeName")
+ .Caching
+ .Through<HashtableCacheProvider>()
+ .PrefixingRegionsWith("xyz")
+ .Queries
+ .Through<StandardQueryCache>()
+ .UsingMinimalPuts()
+ .WithDefaultExpiration(15)
+ .GeneratingCollections
+ .Through<DefaultCollectionTypeFactory>()
+ .Proxy
+ .DisableValidation()
+ .Through<ProxyFactoryFactory>()
+ .ParsingHqlThrough<ClassicQueryTranslatorFactory>()
+ .Mapping
+ .UsingDefaultCatalog("MyCatalog")
+ .UsingDefaultSchema("MySche")
.Integrate
.Using<MsSql2000Dialect>()
.AutoQuoteKeywords()
.BatchingQueries
- .Trough<SqlClientBatchingBatcherFactory>()
+ .Through<SqlClientBatchingBatcherFactory>()
.Each(10)
.Connected
- .Trough<DebugConnectionProvider>()
- .Through<SqlClientDriver>()
+ .Through<DebugConnectionProvider>()
+ .By<SqlClientDriver>()
.Releasing(ConnectionReleaseMode.AfterTransaction)
.With(IsolationLevel.ReadCommitted)
.Using("The connection string but it has some overload")
.CreateCommands
.AutoCommentingSql()
- .ConvertingExceptionsTrough<SQLStateConverter>()
+ .ConvertingExceptionsThrough<SQLStateConverter>()
.Preparing()
.WithTimeout(10)
.WithMaximumDepthOfOuterJoinFetching(10)
@@ -43,23 +58,7 @@
.Schema
.Validating()
;
- sfc.Caching
- .Trough<HashtableCacheProvider>()
- .PrefixingRegionsWith("xyz")
- .Queries
- .Trough<StandardQueryCache>()
- .UsingMinimalPuts()
- .WithDefaultExpiration(15)
- .GeneratingCollections
- .Trough<DefaultCollectionTypeFactory>()
- .Proxy
- .DisableValidation()
- .Trough<ProxyFactoryFactory>()
- .ParsingHqlThrough<ClassicQueryTranslatorFactory>()
- .Mapping
- .UsingDefaultCatalog("MyCatalog")
- .UsingDefaultSchema("MySche")
- ;
+
}
public void ProofOfConceptMinimalConfiguration()
@@ -69,7 +68,7 @@
// The place where put default properties values is the Dialect itself.
IFluentSessionFactoryConfiguration sfc = null;
sfc
- .Proxy.Trough<ProxyFactoryFactory>()
+ .Proxy.Through<ProxyFactoryFactory>()
.Integrate
.Using<MsSql2005Dialect>()
.Connected
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|