|
From: <fab...@us...> - 2011-04-08 17:19:20
|
Revision: 5644
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5644&view=rev
Author: fabiomaulo
Date: 2011-04-08 17:19:14 +0000 (Fri, 08 Apr 2011)
Log Message:
-----------
Simple extension to show the mapping in console output
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj
Added Paths:
-----------
trunk/nhibernate/src/NHibernate.Test/HbmMappingExtensions.cs
Added: trunk/nhibernate/src/NHibernate.Test/HbmMappingExtensions.cs
===================================================================
--- trunk/nhibernate/src/NHibernate.Test/HbmMappingExtensions.cs (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test/HbmMappingExtensions.cs 2011-04-08 17:19:14 UTC (rev 5644)
@@ -0,0 +1,14 @@
+using System;
+using NHibernate.Cfg.MappingSchema;
+using NHibernate.Mapping.ByCode;
+
+namespace NHibernate.Test
+{
+ public static class HbmMappingExtensions
+ {
+ public static void ShowInConsole(this HbmMapping mapping)
+ {
+ Console.WriteLine(mapping.AsString());
+ }
+ }
+}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj
===================================================================
--- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-04-08 17:16:28 UTC (rev 5643)
+++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-04-08 17:19:14 UTC (rev 5644)
@@ -398,6 +398,7 @@
<Compile Include="GenericTest\SetGeneric\SetGenericFixture.cs" />
<Compile Include="GhostProperty\Order.cs" />
<Compile Include="GhostProperty\GhostPropertyFixture.cs" />
+ <Compile Include="HbmMappingExtensions.cs" />
<Compile Include="HQL\Animal.cs" />
<Compile Include="HQL\Ast\Address.cs" />
<Compile Include="HQL\Ast\Animal.cs" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|