|
From: <fab...@us...> - 2009-06-30 17:32:18
|
Revision: 4549
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4549&view=rev
Author: fabiomaulo
Date: 2009-06-30 17:32:16 +0000 (Tue, 30 Jun 2009)
Log Message:
-----------
Minor (added one entry point for fluent conf)
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/NHibernate.csproj
trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs
Added Paths:
-----------
trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ConfigurationExtensions.cs
Added: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ConfigurationExtensions.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ConfigurationExtensions.cs (rev 0)
+++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/ConfigurationExtensions.cs 2009-06-30 17:32:16 UTC (rev 4549)
@@ -0,0 +1,10 @@
+namespace NHibernate.Cfg.Loquacious
+{
+ public static class ConfigurationExtensions
+ {
+ public static IFluentSessionFactoryConfiguration SessionFactory(this Configuration configuration)
+ {
+ return null;
+ }
+ }
+}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/NHibernate.csproj
===================================================================
--- trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-06-29 20:56:51 UTC (rev 4548)
+++ trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-06-30 17:32:16 UTC (rev 4549)
@@ -459,6 +459,7 @@
<Compile Include="Bytecode\ProxyFactoryFactoryNotConfiguredException.cs" />
<Compile Include="Bytecode\UnableToLoadProxyFactoryFactoryException.cs" />
<Compile Include="Cache\FakeCache.cs" />
+ <Compile Include="Cfg\Loquacious\ConfigurationExtensions.cs" />
<Compile Include="Cfg\Loquacious\IBatcherConfiguration.cs" />
<Compile Include="Cfg\Loquacious\ICacheConfiguration.cs" />
<Compile Include="Cfg\Loquacious\ICollectionFactoryConfiguration.cs" />
Modified: trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs
===================================================================
--- trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs 2009-06-29 20:56:51 UTC (rev 4548)
+++ trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs 2009-06-30 17:32:16 UTC (rev 4549)
@@ -3,6 +3,7 @@
using NHibernate.AdoNet;
using NHibernate.ByteCode.LinFu;
using NHibernate.Cache;
+using NHibernate.Cfg;
using NHibernate.Cfg.Loquacious;
using NHibernate.Dialect;
using NHibernate.Driver;
@@ -18,8 +19,8 @@
{
// Here I'm configuring near all properties outside the scope of Configuration class
// Using the Configuration class the user can add mappings and configure listeners
- IFluentSessionFactoryConfiguration sfc= null;
- sfc.Named("SomeName")
+ var cfg = new Configuration();
+ cfg.SessionFactory().Named("SomeName")
.Caching
.Through<HashtableCacheProvider>()
.PrefixingRegionsWith("xyz")
@@ -66,8 +67,8 @@
// This is a possible minimal configuration
// in this case we must define best default properties for each dialect
// The place where put default properties values is the Dialect itself.
- IFluentSessionFactoryConfiguration sfc = null;
- sfc
+ var cfg = new Configuration();
+ cfg.SessionFactory()
.Proxy.Through<ProxyFactoryFactory>()
.Integrate
.Using<MsSql2005Dialect>()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|