You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
(248) |
May
(82) |
Jun
(90) |
Jul
(177) |
Aug
(253) |
Sep
(157) |
Oct
(151) |
Nov
(143) |
Dec
(278) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(152) |
Feb
(107) |
Mar
(177) |
Apr
(133) |
May
(259) |
Jun
(81) |
Jul
(119) |
Aug
(306) |
Sep
(416) |
Oct
(240) |
Nov
(329) |
Dec
(206) |
2006 |
Jan
(466) |
Feb
(382) |
Mar
(153) |
Apr
(162) |
May
(133) |
Jun
(21) |
Jul
(18) |
Aug
(37) |
Sep
(97) |
Oct
(114) |
Nov
(110) |
Dec
(28) |
2007 |
Jan
(74) |
Feb
(65) |
Mar
(49) |
Apr
(76) |
May
(43) |
Jun
(15) |
Jul
(68) |
Aug
(55) |
Sep
(63) |
Oct
(59) |
Nov
(70) |
Dec
(66) |
2008 |
Jan
(71) |
Feb
(60) |
Mar
(120) |
Apr
(31) |
May
(48) |
Jun
(81) |
Jul
(107) |
Aug
(51) |
Sep
(80) |
Oct
(83) |
Nov
(83) |
Dec
(79) |
2009 |
Jan
(83) |
Feb
(110) |
Mar
(97) |
Apr
(91) |
May
(291) |
Jun
(250) |
Jul
(197) |
Aug
(58) |
Sep
(54) |
Oct
(122) |
Nov
(68) |
Dec
(34) |
2010 |
Jan
(50) |
Feb
(17) |
Mar
(63) |
Apr
(61) |
May
(84) |
Jun
(81) |
Jul
(138) |
Aug
(144) |
Sep
(78) |
Oct
(26) |
Nov
(30) |
Dec
(61) |
2011 |
Jan
(33) |
Feb
(35) |
Mar
(166) |
Apr
(221) |
May
(109) |
Jun
(76) |
Jul
(27) |
Aug
(37) |
Sep
(1) |
Oct
(4) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
(1) |
2014 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Michael D. <mik...@us...> - 2005-05-06 15:29:12
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11682 Modified Files: Baz.cs Log Message: Fixed "big bang" and sql server datetime value issue. Index: Baz.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Baz.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Baz.cs 5 May 2005 13:47:41 -0000 1.16 --- Baz.cs 6 May 2005 15:29:03 -0000 1.17 *************** *** 589,593 **** StringDateMap.Add( "now", DateTime.Now ); StringDateMap.Add( "never", null ); ! StringDateMap.Add( "big bang", new DateTime(0L) ); //StringDateMap.Add( "millenium", new DateTime( 2000, 01, 01 ) ); ArrayList list = new ArrayList(); --- 589,594 ---- StringDateMap.Add( "now", DateTime.Now ); StringDateMap.Add( "never", null ); ! // according to SQL Server the big bag happened in 1753 ;) ! StringDateMap.Add( "big bang", new DateTime( 1753, 01, 01) ); //StringDateMap.Add( "millenium", new DateTime( 2000, 01, 01 ) ); ArrayList list = new ArrayList(); |
From: Michael D. <mik...@us...> - 2005-05-06 14:19:22
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26414 Modified Files: ABCTest.cs Log Message: Fixed order of test run problem. If Subclassing was run before Subselect then Subselect would fail. Index: ABCTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ABCTest.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ABCTest.cs 5 May 2005 19:27:52 -0000 1.13 --- ABCTest.cs 6 May 2005 14:19:10 -0000 1.14 *************** *** 153,156 **** --- 153,178 ---- t.Commit(); s.Close(); + + // need to clean up the objects created by this test or Subselect() will fail + // because there are rows in the table. There must be some difference in the order + // that NUnit and JUnit run their tests. + s = OpenSession(); + t = s.BeginTransaction(); + + IList aList = s.Find( "from A" ); + IList dList = s.Find( "from D" ); + + foreach( A aToDelete in aList ) + { + s.Delete( aToDelete ); + } + + foreach( D dToDelete in dList ) + { + s.Delete( dToDelete ); + } + + t.Commit(); + s.Close(); } } |
From: Bill H. <bil...@us...> - 2005-05-06 14:15:34
|
Update of /cvsroot/nhibernate/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25665 Modified Files: readme.html Log Message: Added instructions to install help into Visual Studio .NET Index: readme.html =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/readme.html,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** readme.html 28 Mar 2005 06:26:37 -0000 1.15 --- readme.html 6 May 2005 14:15:18 -0000 1.16 *************** *** 1,72 **** ! <html> ! <body> ! <h1>Welcome to NHibernate.</h1> ! <hr> ! <p> ! NHibernate is a .NET based object persistence library for relational databases. ! NHibernate is a port of the excellent Java <a href="http://hibernate.org">Hibernate</a> ! relational persistence tool. ! </p> ! <h2>Latest Version</h2> ! <p> ! Details of the latest version of NHibernate can be found on SourceForge at ! <a href="http://sourceforge.net/projects/nhibernate"> ! http://sourceforge.net/projects/nhibernate</a>. ! </p> ! <h2>Documentation</h2> ! <p> ! Documentation is very thin right now. We are working on documenting the code as ! it is being developed. The API documentation is in MSDN format thanks to ! <a href="http://sourceforge.net/projects/ndoc">NDoc</a>. ! </p> ! <p> ! We will ride the coat tails of Hibernate's excellent documentation for a while. ! The Hibernate documentation for the version we are porting can be found at ! <a href="http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/"> ! http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/ </a>. ! </p> ! <h2>Bug Reports</h2> ! <p> ! As we mentioned before, this software is still being developed. So if you do ! find any bugs please use the <a href="http://jira.nhibernate.org/">JIRA bug ! tracker</a> . ! </p> ! <h2>Licenses</h2> ! <p> ! This software is distributed under the terms of the FSF Lesser Gnu Public ! License (see lgpl.txt). ! </p> ! <p> ! This product uses software developed by the Apache Software Foundation ! (http://www.apache.org/). ! </p> ! <ul> ! <li>log4net</li> ! </ul> ! <p> ! This product uses software copyrighted by DigitalCraftsmen (http://www.digitalcraftsmen.com.br) ! that is Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) ! </p> ! <ul> ! <li>Castle.DynamicProxy</li> ! </ul> ! <p> ! This product includes source code derived from a sample written by Mattias Sjogren. ! </p> ! <ul> ! <li> ! HashCodeProvider - original code can be found at <a href="http://www.msjogren.net/dotnet/eng/samples/misc.asp"> ! http://www.msjogren.net/dotnet/eng/samples/misc.asp</a> ! </li> ! </ul> ! <p> ! This product includes source code from an article written by Jason Smith. ! </p> ! <ul> ! <li> ! Iesi.Collections - original code can be found at <a href="http://www.codeproject.com/csharp/sets.asp"> ! Add Support for "Set" Collections to .NET</a> ! </li> ! </ul> ! </body> ! </html> --- 1,101 ---- ! <html> ! <body> ! <h1>Welcome to NHibernate.</h1> ! <hr> ! <p> ! NHibernate is a .NET based object persistence library for relational databases. ! NHibernate is a port of the excellent Java <a href="http://hibernate.org">Hibernate</a> ! relational persistence tool. ! </p> ! <h2>Latest Version</h2> ! <p> ! Details of the latest version of NHibernate can be found on SourceForge at <a href="http://sourceforge.net/projects/nhibernate"> ! http://sourceforge.net/projects/nhibernate</a>. ! </p> ! <h2>Documentation</h2> ! <p> ! Documentation is very thin right now. We are working on documenting the code as ! it is being developed. The API documentation is in MSDN format thanks to <a href="http://sourceforge.net/projects/ndoc"> ! NDoc</a>. ! </p> ! <p> ! The help can also be integrated into Visual Studio.NET using the following steps. ! </p> ! <ul> ! <li> ! Download and install H2Reg from <a href="http://helpware.net/mshelp2/h2reg.htm">http://helpware.net/mshelp2/h2reg.htm</a> ! </li> ! <li> ! Register the help collection from the command line using a command similar to ! the following, changing the paths as needed: ! </li> ! </ul> ! <blockquote> ! <code> ! "C:\Program Files\HelpWare\H2Reg\H2Reg" -r CmdFile="C:\NHibernate\doc\Help2\NHibernateCollection.ini" ! </code> ! </blockquote> ! <ul dir="ltr"> ! <li> ! If you need to unregister the help collection, the command is as follows: ! </li> ! </ul> ! <blockquote> ! <code> ! "C:\Program Files\HelpWare\H2Reg\H2Reg" -u CmdFile="C:\NHibernate\doc\Help2\NHibernateCollection.ini" ! </code> ! </blockquote> ! <p> ! We will ride the coat tails of Hibernate's excellent documentation for a while. ! The Hibernate documentation for the version we are porting can be found at <a href="http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/"> ! http://nhibernate.sourceforge.net/h2.0.3-docs/reference/html/ </a>. ! </p> ! <h2>Bug Reports</h2> ! <p> ! As we mentioned before, this software is still being developed. So if you do ! find any bugs please use the <a href="http://jira.nhibernate.org/">JIRA bug ! tracker</a> . ! </p> ! <h2>Licenses</h2> ! <p> ! This software is distributed under the terms of the FSF Lesser Gnu Public ! License (see lgpl.txt). ! </p> ! <p> ! This product uses software developed by the Apache Software Foundation ! (http://www.apache.org/). ! </p> ! <ul> ! <li> ! log4net</li> ! </ul> ! <p> ! This product uses software copyrighted by DigitalCraftsmen ! (http://www.digitalcraftsmen.com.br) that is Licensed under the Apache License, ! Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) ! </p> ! <ul> ! <li> ! Castle.DynamicProxy</li> ! </ul> ! <p> ! This product includes source code derived from a sample written by Mattias ! Sjogren. ! </p> ! <ul> ! <li> ! HashCodeProvider - original code can be found at <a href="http://www.msjogren.net/dotnet/eng/samples/misc.asp"> ! http://www.msjogren.net/dotnet/eng/samples/misc.asp</a> ! </li> ! </ul> ! <p> ! This product includes source code from an article written by Jason Smith. ! </p> ! <ul> ! <li> ! Iesi.Collections - original code can be found at <a href="http://www.codeproject.com/csharp/sets.asp"> ! Add Support for "Set" Collections to .NET</a> ! </li> ! </ul> ! </body> ! </html> |
From: Bill H. <bil...@us...> - 2005-05-06 14:14:57
|
Update of /cvsroot/nhibernate/NHibernateContrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25551 Modified Files: readme.html Log Message: Added instructions to install help into Visual Studio .NET Index: readme.html =================================================================== RCS file: /cvsroot/nhibernate/NHibernateContrib/readme.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** readme.html 8 Dec 2004 08:02:40 -0000 1.2 --- readme.html 6 May 2005 14:14:44 -0000 1.3 *************** *** 1,61 **** ! <html> ! <body> ! <h1>Welcome to NHibernateContrib.</h1> ! <hr> ! <p> ! The NHibernateContrib is various programs contributed to NHibernate by the end users. The ! projects in here are not considered core pieces of NHibernate but they extend it in a useful ! way. ! </p> ! <p> ! The current projects are: ! </p> ! <ul> ! <li> ! Nullables: A library of Nullable version of the ValueTypes in net-1.1. It is meant to serve as ! a bridge until .net-2.0 comes out with their own Nullables. ! </li> ! <li> ! Nullables.NHibernate: A library of NHibernate Types for the Nullables. ! </li> ! <li> ! Nullables.Tests: A library of NUnit Tests for Nullables and Nullables.NHibernate. ! </li> ! <li> ! BantamTech.SysCache: A pluggable cache provider for NHibernate which leverages the ASP.NET Cache object. ! </li> ! </ul> ! ! ! </li> ! <h2>Latest Version</h2> ! <p> ! Details of the latest version of NHibernateContrib can be found on SourceForge at ! <a href="http://sourceforge.net/projects/nhibernate">http://sourceforge.net/projects/nhibernate</a>. ! </p> ! <h2>Documentation</h2> ! <p> ! The API of the components in NHibernateContrib is in MSDN format thanks to ! <a href="http://sourceforge.net/projects/ndoc">NDoc</a>. ! </p> ! ! <h2>Bug Reports</h2> ! <p> ! As we mentioned before, this software is still being developed. So if you do ! find any bugs please use the ! <a href="http://jira.nhibernate.org/">JIRA bug tracker</a> and put them in the contrib component. ! </p> ! <h2>Licenses</h2> ! <p> ! This software is distributed under the terms of the FSF Lesser Gnu Public ! License (see lgpl.txt). ! </p> ! <p> ! This product uses software developed by the Apache Software Foundation ! (http://www.apache.org/). ! </p> ! <ul> ! <li>log4net</li> ! </ul> ! </body> ! </html> --- 1,93 ---- ! <html> ! <body> ! <h1>Welcome to NHibernateContrib.</h1> ! <hr> ! <p> ! The NHibernateContrib is various programs contributed to NHibernate by the end users. The ! projects in here are not considered core pieces of NHibernate but they extend it in a useful ! way. ! </p> ! <p> ! The current projects are: ! </p> ! <ul> ! <li> ! Nullables: A library of Nullable version of the ValueTypes in net-1.1. It is meant to serve as ! a bridge until .net-2.0 comes out with their own Nullables. ! </li> ! <li> ! Nullables.NHibernate: A library of NHibernate Types for the Nullables. ! </li> ! <li> ! Nullables.Tests: A library of NUnit Tests for Nullables and Nullables.NHibernate. ! </li> ! <li> ! BantamTech.SysCache: A pluggable cache provider for NHibernate which leverages the ASP.NET Cache object. ! </li> ! </ul> ! ! ! </li> ! <h2>Latest Version</h2> ! <p> ! Details of the latest version of NHibernateContrib can be found on SourceForge at ! <a href="http://sourceforge.net/projects/nhibernate">http://sourceforge.net/projects/nhibernate</a>. ! </p> ! <h2>Documentation</h2> ! <p> ! The API of the components in NHibernateContrib is in MSDN format thanks to ! <a href="http://sourceforge.net/projects/ndoc">NDoc</a>. ! </p> ! <P> ! The help can also be integrated into Visual Studio.NET using the following steps. ! </P> ! <ul> ! <li> ! Download and install H2Reg from <a href="http://helpware.net/mshelp2/h2reg.htm">http://helpware.net/mshelp2/h2reg.htm</a> ! </li> ! <li> ! Register the NHibernate help collection before registering NHibernateContrib ! help. The NHibernateContrib help is registered as a plug-in to the NHibernate ! help, so if this is not installed first, NHibernateContrib help will not be ! accessible. ! </li> ! <li> ! Register the help collection from the command line using a command similar to ! the following, changing the paths as needed: ! </li> ! </ul> ! <blockquote> ! <code> ! "C:\Program Files\HelpWare\H2Reg\H2Reg" -r CmdFile="C:\NHibernateContrib\doc\sdk\NHibernateContrib.ini" ! </code> ! </blockquote> ! <ul> ! <li> ! If you need to unregister the help collection, the command is as follows: ! </li> ! </ul> ! <blockquote> ! <code> ! "C:\Program Files\HelpWare\H2Reg\H2Reg" -u CmdFile="C:\NHibernateContrib\doc\sdk\NHibernateContrib.ini" ! </code> ! </blockquote> ! <h2>Bug Reports</h2> ! <p> ! As we mentioned before, this software is still being developed. So if you do ! find any bugs please use the ! <a href="http://jira.nhibernate.org/">JIRA bug tracker</a> and put them in the contrib component. ! </p> ! <h2>Licenses</h2> ! <p> ! This software is distributed under the terms of the FSF Lesser Gnu Public ! License (see lgpl.txt). ! </p> ! <p> ! This product uses software developed by the Apache Software Foundation ! (http://www.apache.org/). ! </p> ! <ul> ! <li>log4net</li> ! </ul> ! </body> ! </html> |
From: Bill H. <bil...@us...> - 2005-05-06 13:18:17
|
Update of /cvsroot/nhibernate/nhibernate/doc/Help2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9452/doc/Help2 Modified Files: NHibernateCollection.ini Log Message: Include NHibernateContrib in NHibernate filter Index: NHibernateCollection.ini =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/doc/Help2/NHibernateCollection.ini,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NHibernateCollection.ini 6 May 2005 08:22:27 -0000 1.1 --- NHibernateCollection.ini 6 May 2005 13:18:08 -0000 1.2 *************** *** 19,23 **** [Reg_Filter] ;<nsName>|<FilterName>|<FilterQueryStr> ! NHibernateCollection|NHibernate|("DocSet"="NHibernate-SDK") ;------- UnRegister -u switch --- 19,23 ---- [Reg_Filter] ;<nsName>|<FilterName>|<FilterQueryStr> ! NHibernateCollection|NHibernate|("DocSet"="NHibernate-SDK") OR ("DocSet"="NHibernateContrib-SDK") ;------- UnRegister -u switch |
From: Bill H. <bil...@us...> - 2005-05-06 13:17:43
|
Update of /cvsroot/nhibernate/NHibernateContrib/doc/Help2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9204/doc/Help2 Added Files: NHibernateContrib.ini NhibernateContribCollection.HxC NhibernateContribCollection.HxT NhibernateContribCollection_A.HxK NhibernateContribCollection_F.HxK NhibernateContribCollection_NamedURL.HxK Log Message: Enable creation of Help2 collection --- NEW FILE: NhibernateContribCollection.HxC --- <?xml version="1.0"?> <!DOCTYPE HelpCollection> <HelpCollection DTDVersion="1.0" Id="" FileVersion="0.8.0.0" LangId="" Font="" FontSize="" Charset="" Title="NHibernateContrib Collection" Copyright=""> <TOCDef File="NhibernateContribCollection.HxT"/> <KeywordIndexDef File="NhibernateContribCollection_K.HxK"/> <KeywordIndexDef File="NhibernateContribCollection_NamedURL.HxK"/> <KeywordIndexDef File="NhibernateContribCollection_F.HxK"/> <KeywordIndexDef File="NhibernateContribCollection_A.HxK"/> <ItemMoniker Name="!DefaultFullTextSearch" ProgId="HxDs.HxFullTextSearch" InitData="FTS"/> <ItemMoniker Name="!DefaultTOC" ProgId="HxDs.HxHierarchy" InitData="NhibernateCollection"/> <ItemMoniker Name="!DefaultKeywordIndex" ProgId="HxDs.HxIndex" InitData="K"/> <ItemMoniker Name="!DefaultAssociativeIndex" ProgId="HxDs.HxIndex" InitData="A"/> <ItemMoniker Name="!DefaultContextWindowIndex" ProgId="HxDs.HxIndex" InitData="F"/> <ItemMoniker Name="!DefaultNamedUrlIndex" ProgId="HxDs.HxIndex" InitData="NamedURLIndex"/> </HelpCollection> --- NEW FILE: NhibernateContribCollection.HxT --- <?xml version="1.0"?> <!DOCTYPE HelpTOC> <HelpTOC DTDVersion="1.0" Id="" FileVersion="1.0" LangId="1033" Font="" FontSize="8" Charset="0" ParentNodeIcon="Book" IconFile="" PluginStyle="Hierarchical" PluginTitle="NHibernateContrib SDK"> <HelpTOCNode NodeType="TOC" Url="NHibernateContrib-SDK"/> </HelpTOC> --- NEW FILE: NHibernateContrib.ini --- ;------- Register -r switch [Reg_Namespace] ;<nsName>|<nsColfile>|<nsDesc> NHibernateContribCollection|NHibernateContribCollection.HxC|NHibernateContrib [Reg_Title] ;<nsName>|<TitleID>|<LangId>|<HxS_HelpFile>|<HxI_IndexFile>|<HxQ_QueryFile>|<HxR_AttrQueryFile>|<HxsMediaLoc>|<HxqMediaLoc>|<HxrMediaLoc>|<SampleMediaLoc> NHibernateContribCollection|NHibernateContrib-SDK|1033|NHibernateContrib-SDK.HxS|NHibernateContrib-SDK.HxS|||||| [Reg_Plugin] ;<nsName_Parent>|<HxT_Parent>|<nsName_Child>|<HxT_Child>|<HxA_Child> ;MS.VSCC+|_DEFAULT|NHibernateContribCollection|_DEFAULT| NHibernateCollection|_DEFAULT|NHibernateContribCollection|_DEFAULT| ;------- UnRegister -u switch [UnReg_Plugin] ;<nsName_Parent>|<HxT_Parent>|<nsName_Child>|<HxT_Child>|<HxA_Child> ;MS.VSCC+|_DEFAULT|NHibernateContribCollection|_DEFAULT| NHibernateCollection|_DEFAULT|NHibernateContribCollection|_DEFAULT| [UnReg_Title] ;<nsName>|<TitleID>|<LangId> NHibernateContribCollection|NHibernateContrib-SDK|1033 [UnReg_Namespace] ;<nsName> NHibernateContribCollection --- NEW FILE: NhibernateContribCollection_A.HxK --- <?xml version="1.0"?> <!DOCTYPE HelpIndex> <HelpIndex Name="A" DTDVersion="1.0" Visible="Yes"> </HelpIndex> --- NEW FILE: NhibernateContribCollection_NamedURL.HxK --- <?xml version="1.0"?> <!DOCTYPE HelpIndex> <HelpIndex Name="NamedURLIndex" DTDVersion="1.0" Visible="No"> <Keyword Term = "HomePage"><Jump Url = ""/></Keyword> <Keyword Term = "DefaultPage"><Jump Url = ""/></Keyword> <Keyword Term = "NavFailPage"><Jump Url = ""/></Keyword> <Keyword Term = "AboutPageInfo"><Jump Url = ""/></Keyword> <Keyword Term = "AboutPageIcon"><Jump Url = ""/></Keyword> <Keyword Term = "FilterEditPage"><Jump Url = ""/></Keyword> <Keyword Term = "HelpPage"><Jump Url = ""/></Keyword> <Keyword Term = "SupportPage"><Jump Url = ""/></Keyword> <Keyword Term = "SampleDirPage"><Jump Url = ""/></Keyword> <Keyword Term = "SearchHelpPage"><Jump Url = ""/></Keyword> </HelpIndex> --- NEW FILE: NhibernateContribCollection_F.HxK --- <?xml version="1.0"?> <!DOCTYPE HelpIndex> <HelpIndex Name="F" DTDVersion="1.0" Visible="No"> </HelpIndex> |
From: Bill H. <bil...@us...> - 2005-05-06 13:17:26
|
Update of /cvsroot/nhibernate/NHibernateContrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9102 Modified Files: NHibernateContribSolution.build Log Message: Enable creation of Help2 collection Index: NHibernateContribSolution.build =================================================================== RCS file: /cvsroot/nhibernate/NHibernateContrib/NHibernateContribSolution.build,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** NHibernateContribSolution.build 28 Apr 2005 23:42:30 -0000 1.14 --- NHibernateContribSolution.build 6 May 2005 13:17:13 -0000 1.15 *************** *** 21,24 **** --- 21,31 ---- <!-- + if Visual Studio Help Integration Kit has been installed + then change this to true or include -D:vshik.installed=true in the command line. + It generates Visual Studio.NET 2003 documentation. + --> + <property name="vshik.installed" value="false" overwrite="false" /> + + <!-- Cenqua provided a license of Clover.NET for the NHibernate project to use. --> *************** *** 269,278 **** </documenters> </ndoc> <delete> ! <!-- remove all of the html, gif, etc... files and leave only the chm --> <fileset basedir="${build.dir}/doc/sdk"> ! <include name="*" /> <exclude name="*SDK.chm" /> </fileset> </delete> --- 276,340 ---- </documenters> </ndoc> + + <if test="${vshik.installed}"> + <ndoc> + <assemblies basedir="${build.dir}/bin"> + <include name="NHibernate.Caches.SysCache.dll" /> + <include name="NHibernate.Caches.Prevalence.dll" /> + <include name="Nullables.dll" /> + <include name="Nullables.NHibernate.dll" /> + <include name="NHibernate.Tool.hbm2ddl.dll" /> + <include name="NHibernate.Tool.hbm2net.dll" /> + <include name="NHibernate.Mapping.Attributes.dll" /> + </assemblies> + + <documenters> + <documenter name="VS.NET 2003"> + <property name="OutputDirectory" value="${build.dir}/doc/sdk" /> + <property name="HtmlHelpName" value="NHibernateContrib-SDK" /> + <property name="Title" value="NHibernateContrib Class Library - v.${project.version}" /> + <property name="HeaderHtml" value="" /> + <property name="FooterHtml" value="" /> + <property name="LinkToSdkDocVersion" value="SDK_v1_1" /> + <property name="ShowMissingSummaries" value="${build.debug}" /> + <property name="ShowMissingRemarks" value="${build.debug}" /> + <property name="ShowMissingParams" value="${build.debug}" /> + <property name="ShowMissingReturns" value="${build.debug}" /> + <property name="ShowMissingValues" value="${build.debug}" /> + <property name="DocumentInternals" value="False" /> + <property name="DocumentProtected" value="True" /> + <property name="DocumentPrivates" value="False" /> + <property name="DocumentProtectedInternalAsProtected" value="False" /> + <property name="DocumentEmptyNamespaces" value="False" /> + <property name="CopyrightText" value="" /> + <property name="CopyrightHref" value="" /> + <property name="ReferencesPath" value="" /> + <property name="SkipNamespacesWithoutSummaries" value="False" /> + <property name="UseNamespaceDocSummaries" value="False" /> + <property name="AutoPropertyBackerSummaries" value="False" /> + <property name="AutoDocumentConstructors" value="True" /> + <property name="DocumentAttributes" value="False" /> + <property name="ShowTypeIdInAttributes" value="False" /> + <property name="DocumentedAttributes" value="" /> + <property name="EditorBrowsableFilter" value="Off" /> + <property name="UseNDocXmlFile" value="" /> + </documenter> + </documenters> + </ndoc> + + <copy todir="${build.dir}/doc/sdk"> + <fileset basedir="doc/Help2"> + <include name="*" /> + </fileset> + </copy> + </if> <delete> ! <!-- remove all of the html, gif, etc... files and leave only the chm and HxS --> <fileset basedir="${build.dir}/doc/sdk"> ! <include name="**" /> <exclude name="*SDK.chm" /> + <exclude name="*.Hx?" /> + <exclude name="*.ini" /> </fileset> </delete> |
From: Bill H. <bil...@us...> - 2005-05-06 13:16:08
|
Update of /cvsroot/nhibernate/NHibernateContrib/doc/Help2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8652/Help2 Log Message: Directory /cvsroot/nhibernate/NHibernateContrib/doc/Help2 added to the repository |
From: Bill H. <bil...@us...> - 2005-05-06 13:15:20
|
Update of /cvsroot/nhibernate/NHibernateContrib/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8245/doc Log Message: Directory /cvsroot/nhibernate/NHibernateContrib/doc added to the repository |
From: Bill H. <bil...@us...> - 2005-05-06 08:22:38
|
Update of /cvsroot/nhibernate/nhibernate/doc/Help2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv692/doc/Help2 Added Files: NhibernateCollection.HxC NhibernateCollection.HxT NHibernateCollection.ini NhibernateCollection_A.HxK NhibernateCollection_F.HxK NhibernateCollection_NamedURL.HxK Log Message: Enable creation of Help2 collection --- NEW FILE: NhibernateCollection_F.HxK --- <?xml version="1.0"?> <!DOCTYPE HelpIndex> <HelpIndex Name="F" DTDVersion="1.0" Visible="No"> </HelpIndex> --- NEW FILE: NhibernateCollection_A.HxK --- <?xml version="1.0"?> <!DOCTYPE HelpIndex> <HelpIndex Name="A" DTDVersion="1.0" Visible="Yes"> </HelpIndex> --- NEW FILE: NHibernateCollection.ini --- ;------- Register -r switch [Reg_Namespace] ;<nsName>|<nsColfile>|<nsDesc> NHibernateCollection|NHibernateCollection.HxC|NHibernate [Reg_Title] ;<nsName>|<TitleID>|<LangId>|<HxS_HelpFile>|<HxI_IndexFile>|<HxQ_QueryFile>|<HxR_AttrQueryFile>|<HxsMediaLoc>|<HxqMediaLoc>|<HxrMediaLoc>|<SampleMediaLoc> NHibernateCollection|reference|1033|Titles\reference.HxS|Titles\reference.HxS|||||| [Reg_Title] ;<nsName>|<TitleID>|<LangId>|<HxS_HelpFile>|<HxI_IndexFile>|<HxQ_QueryFile>|<HxR_AttrQueryFile>|<HxsMediaLoc>|<HxqMediaLoc>|<HxrMediaLoc>|<SampleMediaLoc> NHibernateCollection|NHibernate-SDK|1033|Titles\NHibernate-SDK.HxS|Titles\NHibernate-SDK.HxS|||||| [Reg_Plugin] ;<nsName_Parent>|<HxT_Parent>|<nsName_Child>|<HxT_Child>|<HxA_Child> MS.VSCC+|_DEFAULT|NHibernateCollection|_DEFAULT| [Reg_Filter] ;<nsName>|<FilterName>|<FilterQueryStr> NHibernateCollection|NHibernate|("DocSet"="NHibernate-SDK") ;------- UnRegister -u switch [UnReg_Filter] ;<nsName>|<FilterName> NHibernateCollection|NHibernate [UnReg_Plugin] ;<nsName_Parent>|<HxT_Parent>|<nsName_Child>|<HxT_Child>|<HxA_Child> MS.VSCC+|_DEFAULT|NHibernateCollection|_DEFAULT| [UnReg_Title] ;<nsName>|<TitleID>|<LangId> NHibernateCollection|NHibernate-SDK|1033 [UnReg_Title] ;<nsName>|<TitleID>|<LangId> NHibernateCollection|reference|1033 [UnReg_Namespace] ;<nsName> NHibernateCollection --- NEW FILE: NhibernateCollection.HxT --- <?xml version="1.0"?> <!DOCTYPE HelpTOC> <HelpTOC DTDVersion="1.0" Id="" FileVersion="1.0" LangId="1033" Font="" FontSize="8" Charset="0" ParentNodeIcon="Book" IconFile="" PluginStyle="Hierarchical" PluginTitle="NHibernate"> <HelpTOCNode NodeType="TOC" Url="reference"/> <HelpTOCNode Title="NHibernate SDK"> <HelpTOCNode NodeType="TOC" Url="NHibernate-SDK"/> </HelpTOCNode> </HelpTOC> --- NEW FILE: NhibernateCollection_NamedURL.HxK --- <?xml version="1.0"?> <!DOCTYPE HelpIndex> <HelpIndex Name="NamedURLIndex" DTDVersion="1.0" Visible="No"> <Keyword Term = "HomePage"><Jump Url = ""/></Keyword> <Keyword Term = "DefaultPage"><Jump Url = ""/></Keyword> <Keyword Term = "NavFailPage"><Jump Url = ""/></Keyword> <Keyword Term = "AboutPageInfo"><Jump Url = ""/></Keyword> <Keyword Term = "AboutPageIcon"><Jump Url = ""/></Keyword> <Keyword Term = "FilterEditPage"><Jump Url = ""/></Keyword> <Keyword Term = "HelpPage"><Jump Url = ""/></Keyword> <Keyword Term = "SupportPage"><Jump Url = ""/></Keyword> <Keyword Term = "SampleDirPage"><Jump Url = ""/></Keyword> <Keyword Term = "SearchHelpPage"><Jump Url = ""/></Keyword> </HelpIndex> --- NEW FILE: NhibernateCollection.HxC --- <?xml version="1.0"?> <!DOCTYPE HelpCollection> <HelpCollection DTDVersion="1.0" Id="" FileVersion="0.8.0.0" LangId="" Font="" FontSize="" Charset="" Title="NHibernate Collection" Copyright=""> <TOCDef File="NhibernateCollection.HxT"/> <KeywordIndexDef File="NhibernateCollection_K.HxK"/> <KeywordIndexDef File="NhibernateCollection_NamedURL.HxK"/> <KeywordIndexDef File="NhibernateCollection_F.HxK"/> <KeywordIndexDef File="NhibernateCollection_A.HxK"/> <ItemMoniker Name="!DefaultFullTextSearch" ProgId="HxDs.HxFullTextSearch" InitData="FTS"/> <ItemMoniker Name="!DefaultTOC" ProgId="HxDs.HxHierarchy" InitData="NhibernateCollection"/> <ItemMoniker Name="!DefaultKeywordIndex" ProgId="HxDs.HxIndex" InitData="K"/> <ItemMoniker Name="!DefaultAssociativeIndex" ProgId="HxDs.HxIndex" InitData="A"/> <ItemMoniker Name="!DefaultContextWindowIndex" ProgId="HxDs.HxIndex" InitData="F"/> <ItemMoniker Name="!DefaultNamedUrlIndex" ProgId="HxDs.HxIndex" InitData="NamedURLIndex"/> </HelpCollection> |
From: Bill H. <bil...@us...> - 2005-05-06 08:22:22
|
Update of /cvsroot/nhibernate/nhibernate/doc/reference In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv633/doc/reference Modified Files: doc.build Log Message: Enable creation of Help2 collection Index: doc.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/doc/reference/doc.build,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** doc.build 3 May 2005 14:33:45 -0000 1.7 --- doc.build 6 May 2005 08:22:12 -0000 1.8 *************** *** 18,21 **** --- 18,34 ---- --> + <!-- + if Visual Studio Help Integration Kit has been installed + then change this to true or include -D:vshik.installed=true in the command line. + It generates Visual Studio.NET 2003 documentation. + --> + <property name="vshik.installed" value="false" overwrite="false" /> + + <!-- + The path to the VSHIK executable files. If VSHIK is installed in a different path, then + specify the path in the command line using -D:vshik.path=<path> + --> + <property name="vshik.path" value="C:\Program Files\Microsoft Help 2.0 SDK" overwrite="false" /> + <property name="lang" value="en" /> <property name="output.dir" value="build/${lang}" /> *************** *** 23,26 **** --- 36,40 ---- <target name="clean" description="Cleans any previous builds"> <delete dir="${output.dir}" failonerror="false" /> + <delete dir="${build.dir}/doc/help" failonerror="false" /> </target> *************** *** 28,31 **** --- 42,46 ---- <call target="build-html" /> <call target="build-chm" /> + <call target="build-help2" /> </target> *************** *** 107,110 **** --- 122,145 ---- </target> + <target name="build-help2" if="${vshik.installed}" depends="build-chm" description="Generates help2 file from chm file."> + <property name="build.help2.dir" value="${output.dir}/help2" /> + + <exec program="HxConv.exe" basedir="${vshik.path}"> + <arg path="${output.dir}/chm/reference.chm" /> + <arg value="-o" /> + <arg path="${build.help2.dir}/reference" /> + <arg value="-y" /> + </exec> + + <exec program="HxComp.exe" basedir="${vshik.path}"> + <arg value="-p" /> + <arg path="${build.help2.dir}/reference/reference.HxC" /> + <arg value="-o" /> + <arg path="${build.help2.dir}/reference.HxS" /> + </exec> + + <delete dir="${build.help2.dir}/reference" /> + </target> + <target name="package" depends="build" description="Copies the files built into the local build dir into the NH build dir."> <move todir="${build.dir}/doc/help"> |
From: Bill H. <bil...@us...> - 2005-05-06 08:22:01
|
Update of /cvsroot/nhibernate/nhibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv516 Modified Files: NHibernateSolution.build Log Message: Enable creation of Help2 collection Index: NHibernateSolution.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/NHibernateSolution.build,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** NHibernateSolution.build 25 Apr 2005 03:26:59 -0000 1.30 --- NHibernateSolution.build 6 May 2005 08:21:45 -0000 1.31 *************** *** 11,14 **** --- 11,21 ---- --> <property name="nunit2report.installed" value="false" /> + + <!-- + if Visual Studio Help Integration Kit has been installed + then change this to true or include -D:vshik.installed=true in the command line. + It generates Visual Studio.NET 2003 documentation. + --> + <property name="vshik.installed" value="false" overwrite="false" /> <!-- *************** *** 254,257 **** --- 261,279 ---- <call target="sdkdoc" /> <nant target="clean package" buildfile="doc/reference/doc.build" /> + <if test="${vshik.installed}"> + <property name="help2.dir" value="${build.dir}/doc/Help2" /> + <mkdir dir="${help2.dir}" failonerror="false" /> + <copy if="${vshik.installed}" todir="${help2.dir}" overwrite="true" > + <fileset basedir="doc/help2"> + <include name="*" /> + </fileset> + </copy> + <mkdir dir="${help2.dir}/Titles" failonerror="false" /> + <move flatten="true" todir="${help2.dir}/Titles"> + <fileset basedir="${build.dir}/doc"> + <include name="**/*.HxS" /> + </fileset> + </move> + </if> </target> *************** *** 259,268 **** <ndoc> <assemblies basedir="${build.dir}/bin"> ! <includes name="NHibernate.dll" /> ! <includes name="Iesi.Collections.dll" /> </assemblies> <summaries> ! <includes name="src/NHibernate/NamespaceSummary.xml" /> ! <includes name="src/Iesi.Collections/NamespaceSummary.xml" /> </summaries> <documenters> --- 281,290 ---- <ndoc> <assemblies basedir="${build.dir}/bin"> ! <include name="NHibernate.dll" /> ! <include name="Iesi.Collections.dll" /> </assemblies> <summaries> ! <include name="src/NHibernate/NamespaceSummary.xml" /> ! <include name="src/Iesi.Collections/NamespaceSummary.xml" /> </summaries> <documenters> *************** *** 311,319 **** </ndoc> <delete> ! <!-- remove all of the html, gif, etc... files and leave only the chm --> <fileset basedir="${build.dir}/doc/sdk"> ! <includes name="*" /> ! <excludes name="*SDK.chm" /> </fileset> </delete> --- 333,386 ---- </ndoc> + <if test="${vshik.installed}"> + <ndoc> + <assemblies basedir="${build.dir}/bin"> + <include name="NHibernate.dll" /> + <include name="Iesi.Collections.dll" /> + </assemblies> + <summaries> + <include name="src/NHibernate/NamespaceSummary.xml" /> + <include name="src/Iesi.Collections/NamespaceSummary.xml" /> + </summaries> + <documenters> + <documenter name="VS.NET 2003"> + <property name="OutputDirectory" value="${build.dir}/doc/sdk" /> + <property name="HtmlHelpName" value="NHibernate-SDK" /> + <property name="Title" value="NHibernate Class Library - v.${project.version}" /> + <property name="HeaderHtml" value="" /> + <property name="FooterHtml" value="" /> + <property name="LinkToSdkDocVersion" value="SDK_v1_1" /> + <property name="ShowMissingSummaries" value="${build.debug}" /> + <property name="ShowMissingRemarks" value="${build.debug}" /> + <property name="ShowMissingParams" value="${build.debug}" /> + <property name="ShowMissingReturns" value="${build.debug}" /> + <property name="ShowMissingValues" value="${build.debug}" /> + <property name="DocumentInternals" value="False" /> + <property name="DocumentProtected" value="True" /> + <property name="DocumentPrivates" value="False" /> + <property name="DocumentProtectedInternalAsProtected" value="False" /> + <property name="DocumentEmptyNamespaces" value="False" /> + <property name="CopyrightText" value="" /> + <property name="CopyrightHref" value="" /> + <property name="ReferencesPath" value="" /> + <property name="SkipNamespacesWithoutSummaries" value="False" /> + <property name="UseNamespaceDocSummaries" value="False" /> + <property name="AutoPropertyBackerSummaries" value="False" /> + <property name="AutoDocumentConstructors" value="True" /> + <property name="DocumentAttributes" value="True" /> + <property name="ShowTypeIdInAttributes" value="False" /> + <property name="DocumentedAttributes" value="True" /> + <property name="EditorBrowsableFilter" value="Off" /> + <property name="UseNDocXmlFile" value="" /> + </documenter> + </documenters> + </ndoc> + </if> <delete> ! <!-- remove all of the html, gif, etc... files and leave only the chm and HxS --> <fileset basedir="${build.dir}/doc/sdk"> ! <include name="**" /> ! <exclude name="*SDK.chm" /> ! <exclude name="*SDK.HxS" /> </fileset> </delete> *************** *** 325,330 **** <fileset> <!-- copy framework nuetral dlls --> ! <includes name="lib/*" /> ! <includes name="${lib.dir}/**" /> <!-- --- 392,397 ---- <fileset> <!-- copy framework nuetral dlls --> ! <include name="lib/*" /> ! <include name="${lib.dir}/**" /> <!-- *************** *** 332,357 **** Clover modified source files. --> ! <excludes name="src/UnitTesting/**" /> ! <excludes name="${clover.src}/**" /> <!-- exclude ReSharper stuff --> ! <excludes name="**/_ReSharper*/**" /> ! <excludes name="**/*.resharperoptions" /> ! <includes name="src/**" /> ! <includes name="NHibernateSolution.build" /> ! <includes name="lgpl.txt" /> ! <includes name="releasenotes.txt" /> ! <includes name="readme.html" /> <!-- exclude VS.NET stuff --> ! <excludes name="**/*.suo" /> ! <excludes name="**/*j.user" /> ! <excludes name="**/bin/**" /> ! <excludes name="**/obj/**" /> <!-- exclude any keys that exist on the build machine --> ! <excludes name="**/*.snk" /> </fileset> --- 399,424 ---- Clover modified source files. --> ! <exclude name="src/UnitTesting/**" /> ! <exclude name="${clover.src}/**" /> <!-- exclude ReSharper stuff --> ! <exclude name="**/_ReSharper*/**" /> ! <exclude name="**/*.resharperoptions" /> ! <include name="src/**" /> ! <include name="NHibernateSolution.build" /> ! <include name="lgpl.txt" /> ! <include name="releasenotes.txt" /> ! <include name="readme.html" /> <!-- exclude VS.NET stuff --> ! <exclude name="**/*.suo" /> ! <exclude name="**/*j.user" /> ! <exclude name="**/bin/**" /> ! <exclude name="**/obj/**" /> <!-- exclude any keys that exist on the build machine --> ! <exclude name="**/*.snk" /> </fileset> *************** *** 361,366 **** <zip zipfile="${project.zip-path}"> <fileset basedir="${build.dir}"> ! <includes name="**/*" /> ! <excludes name="bin/log.txt" /> </fileset> </zip> --- 428,433 ---- <zip zipfile="${project.zip-path}"> <fileset basedir="${build.dir}"> ! <include name="**/*" /> ! <exclude name="bin/log.txt" /> </fileset> </zip> |
From: Bill H. <bil...@us...> - 2005-05-06 08:14:29
|
Update of /cvsroot/nhibernate/nhibernate/doc/Help2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31450/Help2 Log Message: Directory /cvsroot/nhibernate/nhibernate/doc/Help2 added to the repository |
From: Sergey K. <jus...@us...> - 2005-05-05 20:47:06
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11226/src/NHibernate.Test Modified Files: FooBarTest.cs Log Message: Fixed more session leaks in tests Index: FooBarTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v retrieving revision 1.97 retrieving revision 1.98 diff -C2 -d -r1.97 -r1.98 *** FooBarTest.cs 5 May 2005 19:27:52 -0000 1.97 --- FooBarTest.cs 5 May 2005 20:46:56 -0000 1.98 *************** *** 2644,2647 **** --- 2644,2650 ---- System.Runtime.Serialization.IFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); formatter.Serialize(stream, s); + + s.Close(); + stream.Position = 0; s = (ISession)formatter.Deserialize(stream); |
From: Sergey K. <jus...@us...> - 2005-05-05 20:47:06
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyInterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11226/src/NHibernate.Test/ProxyInterface Modified Files: CastleProxyFixture.cs Log Message: Fixed more session leaks in tests Index: CastleProxyFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyInterface/CastleProxyFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CastleProxyFixture.cs 5 May 2005 19:28:03 -0000 1.3 --- CastleProxyFixture.cs 5 May 2005 20:46:56 -0000 1.4 *************** *** 41,44 **** --- 41,61 ---- } + private void SerializeAndDeserialize(ref ISession s) + { + // Serialize the session + using( Stream stream = new MemoryStream() ) + { + IFormatter formatter = new BinaryFormatter( ); + formatter.Serialize(stream, s); + + // Close the original session + s.Close(); + + // Deserialize the session + stream.Position = 0; + s = (ISession)formatter.Deserialize(stream); + } + } + [Test] public void ProxySerialize() *************** *** 56,79 **** Assert.AreEqual( 1, ap.Id ); s.Disconnect(); ! ! // serialize and then deserialize the session. ! Stream stream = new MemoryStream(); ! IFormatter formatter = new BinaryFormatter( ); ! formatter.Serialize(stream, s); ! stream.Position = 0; ! s = (ISession)formatter.Deserialize(stream); ! stream.Close(); s.Reconnect(); s.Disconnect(); ! // serialize and then deserialize the session again - make sure Castle.DynamicProxy // has no problem with serializing two times - earlier versions of it did. ! stream = new MemoryStream(); ! formatter = new BinaryFormatter( ); ! formatter.Serialize(stream, s); ! stream.Position = 0; ! s = (ISession)formatter.Deserialize(stream); ! stream.Close(); s.Close(); --- 73,85 ---- Assert.AreEqual( 1, ap.Id ); s.Disconnect(); ! ! SerializeAndDeserialize(ref s); s.Reconnect(); s.Disconnect(); ! // serialize and then deserialize the session again - make sure Castle.DynamicProxy // has no problem with serializing two times - earlier versions of it did. ! SerializeAndDeserialize(ref s); s.Close(); *************** *** 88,99 **** Assert.AreEqual( 5, notThere.Id ); s.Disconnect(); ! // serialize and then deserialize the session. ! Stream stream = new MemoryStream(); ! IFormatter formatter = new BinaryFormatter( ); ! formatter.Serialize(stream, s); ! stream.Position = 0; ! s = (ISession)formatter.Deserialize(stream); ! stream.Close(); Assert.IsNotNull( s.Load( typeof(CastleProxyImpl), 5 ), "should be proxy - even though it doesn't exists in db" ); --- 94,100 ---- Assert.AreEqual( 5, notThere.Id ); s.Disconnect(); ! // serialize and then deserialize the session. ! SerializeAndDeserialize(ref s); Assert.IsNotNull( s.Load( typeof(CastleProxyImpl), 5 ), "should be proxy - even though it doesn't exists in db" ); |
From: Sergey K. <jus...@us...> - 2005-05-05 19:29:21
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate/Driver Modified Files: SQLiteDriver.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: SQLiteDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/SQLiteDriver.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SQLiteDriver.cs 5 Apr 2005 14:22:27 -0000 1.3 --- SQLiteDriver.cs 5 May 2005 19:28:21 -0000 1.4 *************** *** 89,92 **** --- 89,98 ---- get { return "@"; } } + + public override bool SupportsMultipleOpenReaders + { + get { return false; } + } + } } |
From: Sergey K. <jus...@us...> - 2005-05-05 19:29:19
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/NHSpecificTest Modified Files: BasicClassFixture.cs BasicObjectFixture.cs BasicSerializableFixture.cs BasicTimeFixture.cs CollectionFixture.cs GetTest.cs LazyLoadBugTest.cs MapFixture.cs NH47Fixture.cs NodeFixture.cs SimpleComponentFixture.cs UnsavedValueFixture.cs UserTypeFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: BasicClassFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** BasicClassFixture.cs 30 Dec 2004 16:25:13 -0000 1.12 --- BasicClassFixture.cs 5 May 2005 19:27:55 -0000 1.13 *************** *** 31,35 **** public void TestPrivateFieldAccess() { ! ISession s = sessions.OpenSession(); BasicClass bc = new BasicClass(); --- 31,35 ---- public void TestPrivateFieldAccess() { ! ISession s = OpenSession(); BasicClass bc = new BasicClass(); *************** *** 40,44 **** s.Close(); ! s = sessions.OpenSession(); bc = (BasicClass)s.Load( typeof(BasicClass), (int)1 ); Assert.AreEqual( 5, bc.ValueOfPrivateField, "private field accessor" ); --- 40,44 ---- s.Close(); ! s = OpenSession(); bc = (BasicClass)s.Load( typeof(BasicClass), (int)1 ); Assert.AreEqual( 5, bc.ValueOfPrivateField, "private field accessor" ); *************** *** 61,65 **** // make sure the previous insert went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 61,65 ---- // make sure the previous insert went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 83,87 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 83,87 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 99,103 **** // update a property to make sure it picks up that it is dirty ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 99,103 ---- // update a property to make sure it picks up that it is dirty ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 114,118 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 114,118 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 130,134 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 130,134 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 145,149 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 145,149 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 160,164 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 160,164 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 175,179 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 175,179 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 190,194 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 190,194 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 205,209 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 205,209 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 220,224 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 220,224 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 235,239 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 235,239 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 250,254 **** // make sure the previous updates went through ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 250,254 ---- // make sure the previous updates went through ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 265,269 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 265,269 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 300,304 **** // modify the array so it is updated - should not be recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 300,304 ---- // modify the array so it is updated - should not be recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 315,319 **** // change the array to a new array so it is recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 315,319 ---- // change the array to a new array so it is recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 331,335 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 331,335 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 366,370 **** // modify the array so it is updated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 366,370 ---- // modify the array so it is updated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 386,390 **** // modify the array to a new array so it is recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 386,390 ---- // modify the array to a new array so it is recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 402,406 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 402,406 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 436,440 **** // modify the array so it is updated - should not be recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 436,440 ---- // modify the array so it is updated - should not be recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 454,458 **** // change the List to a new List so it is recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 454,458 ---- // change the List to a new List so it is recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 472,476 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 472,476 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 506,510 **** // modify the array so it is updated - should not be recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 506,510 ---- // modify the array so it is updated - should not be recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 523,527 **** // change the List to a new List so it is recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 523,527 ---- // change the List to a new List so it is recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 541,545 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 541,545 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 575,579 **** // modify the bag so it is updated - should not be recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 575,579 ---- // modify the bag so it is updated - should not be recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 592,596 **** // add an item to the list ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 592,596 ---- // add an item to the list ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 608,612 **** // change the List to a new List so it is recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 608,612 ---- // change the List to a new List so it is recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 626,630 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 626,630 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 653,658 **** originalCount = basicClass.StringBag.Count; ! ISession s = sessions.OpenSession(); ! ISession s2 = sessions.OpenSession(); BasicClass bc = (BasicClass)s.Load( typeof(BasicClass), id ); --- 653,658 ---- originalCount = basicClass.StringBag.Count; ! ISession s = OpenSession(); ! ISession s2 = OpenSession(); BasicClass bc = (BasicClass)s.Load( typeof(BasicClass), id ); *************** *** 684,688 **** // modify the array so it is updated - should not be recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 684,688 ---- // modify the array so it is updated - should not be recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 701,705 **** // add an item to the list ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 701,705 ---- // add an item to the list ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 717,721 **** // change the List to a new List so it is recreated ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 717,721 ---- // change the List to a new List so it is recreated ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 735,739 **** // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = sessions.OpenSession(); t[index] = s[index].BeginTransaction(); --- 735,739 ---- // VERIFY PREVIOUS UPDATE & PERFORM DELETE ! s[index] = OpenSession(); t[index] = s[index].BeginTransaction(); *************** *** 757,761 **** { ! ISession s = sessions.OpenSession(); BasicClass bc = new BasicClass(); --- 757,761 ---- { ! ISession s = OpenSession(); BasicClass bc = new BasicClass(); *************** *** 768,772 **** s.Close(); ! s = sessions.OpenSession(); bc = (BasicClass)s.Load( typeof(BasicClass), id ); --- 768,772 ---- s.Close(); ! s = OpenSession(); bc = (BasicClass)s.Load( typeof(BasicClass), id ); *************** *** 782,786 **** internal void AssertDelete(int id) { ! ISession s = sessions.OpenSession(); try --- 782,786 ---- internal void AssertDelete(int id) { ! ISession s = OpenSession(); try *************** *** 805,809 **** internal BasicClass InsertBasicClass(int id) { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 805,809 ---- internal BasicClass InsertBasicClass(int id) { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); Index: CollectionFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/CollectionFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CollectionFixture.cs 26 Mar 2005 12:18:54 -0000 1.1 --- CollectionFixture.cs 5 May 2005 19:27:55 -0000 1.2 *************** *** 24,28 **** int parentId = 0; ! using( ISession s1 = sessions.OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { --- 24,28 ---- int parentId = 0; ! using( ISession s1 = OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { *************** *** 40,44 **** // try to Load the object to make sure the save worked ! using( ISession s2 = sessions.OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { --- 40,44 ---- // try to Load the object to make sure the save worked ! using( ISession s2 = OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { *************** *** 54,58 **** int childId = 0; ! using( ISession s1 = sessions.OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { --- 54,58 ---- int childId = 0; ! using( ISession s1 = OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { *************** *** 71,75 **** // try to Load the object to make sure the save worked ! using( ISession s2 = sessions.OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { --- 71,75 ---- // try to Load the object to make sure the save worked ! using( ISession s2 = OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { Index: SimpleComponentFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/SimpleComponentFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SimpleComponentFixture.cs 20 Sep 2004 17:46:00 -0000 1.2 --- SimpleComponentFixture.cs 5 May 2005 19:27:55 -0000 1.3 *************** *** 22,26 **** [Test] public void TestLoad() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 22,26 ---- [Test] public void TestLoad() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 44,48 **** public void TestInsert() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 44,48 ---- public void TestInsert() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); Index: UnsavedValueFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/UnsavedValueFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** UnsavedValueFixture.cs 20 Sep 2004 17:46:00 -0000 1.3 --- UnsavedValueFixture.cs 5 May 2005 19:27:55 -0000 1.4 *************** *** 29,33 **** // open the first session to SaveOrUpdate it - should be Save ! ISession s1 = sessions.OpenSession(); ITransaction t1 = s1.BeginTransaction(); s1.SaveOrUpdate(unsavedToSave); --- 29,33 ---- // open the first session to SaveOrUpdate it - should be Save ! ISession s1 = OpenSession(); ITransaction t1 = s1.BeginTransaction(); s1.SaveOrUpdate(unsavedToSave); *************** *** 40,44 **** // use the ICriteria interface to get another instance in a different // session ! ISession s2 = sessions.OpenSession(); ITransaction t2 = s2.BeginTransaction(); --- 40,44 ---- // use the ICriteria interface to get another instance in a different // session ! ISession s2 = OpenSession(); ITransaction t2 = s2.BeginTransaction(); *************** *** 61,65 **** // create a new session for the Update ! ISession s3 = sessions.OpenSession(); ITransaction t3 = s3.BeginTransaction(); --- 61,65 ---- // create a new session for the Update ! ISession s3 = OpenSession(); ITransaction t3 = s3.BeginTransaction(); *************** *** 75,79 **** // lets get a list of all the rows in the table to make sure // that there has not been any extra inserts ! ISession s4 = sessions.OpenSession(); ITransaction t4 = s4.BeginTransaction(); --- 75,79 ---- // lets get a list of all the rows in the table to make sure // that there has not been any extra inserts ! ISession s4 = OpenSession(); ITransaction t4 = s4.BeginTransaction(); *************** *** 92,96 **** // lets make sure the object was deleted ! ISession s5 = sessions.OpenSession(); try { --- 92,96 ---- // lets make sure the object was deleted ! ISession s5 = OpenSession(); try { Index: BasicSerializableFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/BasicSerializableFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicSerializableFixture.cs 31 Aug 2004 20:37:29 -0000 1.1 --- BasicSerializableFixture.cs 5 May 2005 19:27:55 -0000 1.2 *************** *** 31,35 **** public void TestCRUD() { ! ISession s = sessions.OpenSession(); BasicSerializable ser = new BasicSerializable(); SerializableClass serClass = ser.SerializableProperty; --- 31,35 ---- public void TestCRUD() { ! ISession s = OpenSession(); BasicSerializable ser = new BasicSerializable(); SerializableClass serClass = ser.SerializableProperty; *************** *** 38,42 **** s.Close(); ! s = sessions.OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); Assert.IsNull( ser.Serial , "should have saved as null" ); --- 38,42 ---- s.Close(); ! s = OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); Assert.IsNull( ser.Serial , "should have saved as null" ); *************** *** 46,50 **** s.Close(); ! s = sessions.OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); Assert.IsTrue( ser.Serial is SerializableClass, "should have been a SerializableClass" ); --- 46,50 ---- s.Close(); ! s = OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); Assert.IsTrue( ser.Serial is SerializableClass, "should have been a SerializableClass" ); *************** *** 61,65 **** s.Close(); ! s = sessions.OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); --- 61,65 ---- s.Close(); ! s = OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); *************** *** 73,77 **** s.Close(); ! s = sessions.OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); Assert.AreEqual( "modify me", ser.SerializableProperty._classString ); --- 73,77 ---- s.Close(); ! s = OpenSession(); ser = (BasicSerializable)s.Load( typeof(BasicSerializable), ser.Id ); Assert.AreEqual( "modify me", ser.SerializableProperty._classString ); Index: NH47Fixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/NH47Fixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NH47Fixture.cs 24 Apr 2005 15:41:58 -0000 1.2 --- NH47Fixture.cs 5 May 2005 19:27:55 -0000 1.3 *************** *** 27,31 **** if (objs != null && objs.Length > 0) { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 27,31 ---- if (objs != null && objs.Length > 0) { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); Index: UserTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/UserTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** UserTypeFixture.cs 11 Jun 2004 20:09:30 -0000 1.1 --- UserTypeFixture.cs 5 May 2005 19:27:55 -0000 1.2 *************** *** 28,32 **** public void InsertNull() { ! ISession s = sessions.OpenSession(); ClassWithNullColumns userTypeClass = new ClassWithNullColumns(); --- 28,32 ---- public void InsertNull() { ! ISession s = OpenSession(); ClassWithNullColumns userTypeClass = new ClassWithNullColumns(); Index: BasicObjectFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/BasicObjectFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BasicObjectFixture.cs 17 Jan 2005 03:40:52 -0000 1.3 --- BasicObjectFixture.cs 5 May 2005 19:27:55 -0000 1.4 *************** *** 33,37 **** public void TestCRUD() { ! ISession s = sessions.OpenSession(); BasicObjectRef any = new BasicObjectRef(); --- 33,37 ---- public void TestCRUD() { ! ISession s = OpenSession(); BasicObjectRef any = new BasicObjectRef(); *************** *** 52,56 **** s.Close(); ! s = sessions.OpenSession(); bo = (BasicObject)s.Load( typeof(BasicObject), bo.Id ); --- 52,56 ---- s.Close(); ! s = OpenSession(); bo = (BasicObject)s.Load( typeof(BasicObject), bo.Id ); Index: BasicTimeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/BasicTimeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicTimeFixture.cs 3 Nov 2004 03:37:06 -0000 1.1 --- BasicTimeFixture.cs 5 May 2005 19:27:55 -0000 1.2 *************** *** 25,34 **** BasicTime basic = Create(1); ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); BasicTime basicLoaded = (BasicTime)s.Load( typeof(BasicTime), 1 ); --- 25,34 ---- BasicTime basic = Create(1); ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); BasicTime basicLoaded = (BasicTime)s.Load( typeof(BasicTime), 1 ); *************** *** 51,60 **** BasicTime basic = Create(1); ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); BasicTime basicLoaded = (BasicTime)s.Load( typeof(BasicTime), 1 ); --- 51,60 ---- BasicTime basic = Create(1); ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); BasicTime basicLoaded = (BasicTime)s.Load( typeof(BasicTime), 1 ); *************** *** 67,71 **** s.Close(); ! s = sessions.OpenSession(); basic = (BasicTime)s.Load( typeof(BasicTime), 1 ); // make sure the 0 index saved with values in Time --- 67,71 ---- s.Close(); ! s = OpenSession(); basic = (BasicTime)s.Load( typeof(BasicTime), 1 ); // make sure the 0 index saved with values in Time *************** *** 89,98 **** BasicTime basic = Create(1); ! ISession s = sessions.OpenSession(); s.Save( basic ); s.Flush(); s.Close(); ! s = sessions.OpenSession(); basic = (BasicTime)s.Load( typeof(BasicTime), 1 ); --- 89,98 ---- BasicTime basic = Create(1); ! ISession s = OpenSession(); s.Save( basic ); s.Flush(); s.Close(); ! s = OpenSession(); basic = (BasicTime)s.Load( typeof(BasicTime), 1 ); *************** *** 102,106 **** s.Close(); ! s = sessions.OpenSession(); // make sure the update went through BasicTime basicLoaded = (BasicTime)s.Load( typeof(BasicTime), 1 ); --- 102,106 ---- s.Close(); ! s = OpenSession(); // make sure the update went through BasicTime basicLoaded = (BasicTime)s.Load( typeof(BasicTime), 1 ); Index: LazyLoadBugTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/LazyLoadBugTest.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LazyLoadBugTest.cs 11 Feb 2005 05:15:35 -0000 1.2 --- LazyLoadBugTest.cs 5 May 2005 19:27:55 -0000 1.3 *************** *** 21,25 **** int parentId = 0; ! using( ISession s1 = sessions.OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { --- 21,25 ---- int parentId = 0; ! using( ISession s1 = OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { *************** *** 36,40 **** // try to Load the object to get the exception ! using( ISession s2 = sessions.OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { --- 36,40 ---- // try to Load the object to get the exception ! using( ISession s2 = OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { *************** *** 54,58 **** int parentId = 0; ! using( ISession s1 = sessions.OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { --- 54,58 ---- int parentId = 0; ! using( ISession s1 = OpenSession() ) using( ITransaction t1 = s1.BeginTransaction() ) { *************** *** 70,74 **** // try to Load the object to make sure the save worked ! using( ISession s2 = sessions.OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { --- 70,74 ---- // try to Load the object to make sure the save worked ! using( ISession s2 = OpenSession() ) using( ITransaction t2 = s2.BeginTransaction() ) { Index: MapFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/MapFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MapFixture.cs 18 Nov 2004 02:47:00 -0000 1.3 --- MapFixture.cs 5 May 2005 19:27:55 -0000 1.4 *************** *** 35,39 **** [Test] public void TestSelect() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 35,39 ---- [Test] public void TestSelect() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 61,65 **** public void TestInverse() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 61,65 ---- public void TestInverse() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 78,82 **** [Test] public void TestSort() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 78,82 ---- [Test] public void TestSort() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 102,106 **** [Test] public void TestInsert() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 102,106 ---- [Test] public void TestInsert() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); Index: NodeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/NodeFixture.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NodeFixture.cs 18 Nov 2004 02:47:00 -0000 1.4 --- NodeFixture.cs 5 May 2005 19:27:55 -0000 1.5 *************** *** 39,43 **** levelThreeNode.AddDestinationNode(endNode); ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 39,43 ---- levelThreeNode.AddDestinationNode(endNode); ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 55,59 **** // verify these nodes were actually saved and can be queried correctly. ! ISession s2 = sessions.OpenSession(); ITransaction t2 = s2.BeginTransaction(); --- 55,59 ---- // verify these nodes were actually saved and can be queried correctly. ! ISession s2 = OpenSession(); ITransaction t2 = s2.BeginTransaction(); *************** *** 89,93 **** s2.Close(); ! s = sessions.OpenSession(); t = s.BeginTransaction(); --- 89,93 ---- s2.Close(); ! s = OpenSession(); t = s.BeginTransaction(); *************** *** 111,115 **** s.Close(); ! s = sessions.OpenSession(); t = s.BeginTransaction(); --- 111,115 ---- s.Close(); ! s = OpenSession(); t = s.BeginTransaction(); Index: GetTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/GetTest.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GetTest.cs 15 Mar 2005 11:56:33 -0000 1.3 --- GetTest.cs 5 May 2005 19:27:55 -0000 1.4 *************** *** 21,30 **** A a = new A( "name" ); ! using( ISession s = sessions.OpenSession() ) { s.Save( a ); } ! using( ISession s = sessions.OpenSession() ) { A loadedA = ( A )s.Load( typeof( A ), a.Id ); --- 21,30 ---- A a = new A( "name" ); ! using( ISession s = OpenSession() ) { s.Save( a ); } ! using( ISession s = OpenSession() ) { A loadedA = ( A )s.Load( typeof( A ), a.Id ); *************** *** 36,40 **** } ! using( ISession s = sessions.OpenSession() ) { A gotA = (A)s.Get( typeof( A ), a.Id ); --- 36,40 ---- } ! using( ISession s = OpenSession() ) { A gotA = (A)s.Get( typeof( A ), a.Id ); *************** *** 51,55 **** { A a = new A( "name" ); ! using( ISession s = sessions.OpenSession() ) { s.Save( a ); --- 51,55 ---- { A a = new A( "name" ); ! using( ISession s = OpenSession() ) { s.Save( a ); *************** *** 57,61 **** } ! using( ISession s = sessions.OpenSession() ) { a = s.Get( typeof(A), a.Id ) as A; --- 57,61 ---- } ! using( ISession s = OpenSession() ) { a = s.Get( typeof(A), a.Id ) as A; *************** *** 64,68 **** } ! using( ISession s = sessions.OpenSession() ) { a = s.Get( typeof(A), a.Id ) as A; --- 64,68 ---- } ! using( ISession s = OpenSession() ) { a = s.Get( typeof(A), a.Id ) as A; |
From: Sergey K. <jus...@us...> - 2005-05-05 19:29:17
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/QueryTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/QueryTest Modified Files: NamedParametersFixture.cs PositionalParametersFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: PositionalParametersFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/QueryTest/PositionalParametersFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PositionalParametersFixture.cs 1 Mar 2005 16:25:07 -0000 1.1 --- PositionalParametersFixture.cs 5 May 2005 19:28:03 -0000 1.2 *************** *** 50,54 **** public void TestMissingHQLParameters() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 50,54 ---- public void TestMissingHQLParameters() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 64,68 **** public void TestMissingHQLParameters2() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 64,68 ---- public void TestMissingHQLParameters2() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 78,82 **** public void TestPositionOutOfBounds() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 78,82 ---- public void TestPositionOutOfBounds() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); *************** *** 92,96 **** public void TestNoPositionalParameters() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 92,96 ---- public void TestNoPositionalParameters() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); Index: NamedParametersFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/QueryTest/NamedParametersFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NamedParametersFixture.cs 1 Mar 2005 16:25:07 -0000 1.1 --- NamedParametersFixture.cs 5 May 2005 19:28:03 -0000 1.2 *************** *** 50,54 **** public void TestMissingHQLParameters() { ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); --- 50,54 ---- public void TestMissingHQLParameters() { ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); |
From: Sergey K. <jus...@us...> - 2005-05-05 19:29:15
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/Subclass In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/Subclass Modified Files: SubclassFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: SubclassFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/Subclass/SubclassFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SubclassFixture.cs 10 Dec 2004 16:40:04 -0000 1.1 --- SubclassFixture.cs 5 May 2005 19:28:03 -0000 1.2 *************** *** 26,30 **** { // test the Save ! ISession s1 = sessions.OpenSession(); ITransaction t1 = s1.BeginTransaction(); int oneId; --- 26,30 ---- { // test the Save ! ISession s1 = OpenSession(); ITransaction t1 = s1.BeginTransaction(); int oneId; *************** *** 51,55 **** // lets verify the correct classes were saved ! ISession s2 = sessions.OpenSession(); ITransaction t2 = s2.BeginTransaction(); --- 51,55 ---- // lets verify the correct classes were saved ! ISession s2 = OpenSession(); ITransaction t2 = s2.BeginTransaction(); *************** *** 82,86 **** // lets test the Criteria interface for subclassing ! ISession s3 = sessions.OpenSession(); ITransaction t3 = s3.BeginTransaction(); --- 82,86 ---- // lets test the Criteria interface for subclassing ! ISession s3 = OpenSession(); ITransaction t3 = s3.BeginTransaction(); *************** *** 118,122 **** { // test the Save ! ISession s = sessions.OpenSession(); ITransaction t = s.BeginTransaction(); int oneId; --- 118,122 ---- { // test the Save ! ISession s = OpenSession(); ITransaction t = s.BeginTransaction(); int oneId; *************** *** 142,146 **** s.Close(); ! s = sessions.OpenSession(); IList list = s.Find( "from SubclassBase as sb where sb.class=SubclassBase" ); Assert.AreEqual( 1, list.Count ); --- 142,146 ---- s.Close(); ! s = OpenSession(); IList list = s.Find( "from SubclassBase as sb where sb.class=SubclassBase" ); Assert.AreEqual( 1, list.Count ); |
From: Sergey K. <jus...@us...> - 2005-05-05 19:28:53
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/TypesTest Modified Files: BinaryBlobTypeFixture.cs BinaryTypeFixture.cs BooleanTypeFixture.cs ByteTypeFixture.cs DecimalTypeFixture.cs DoubleTypeFixture.cs GuidTypeFixture.cs StringClobTypeFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: DoubleTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/DoubleTypeFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DoubleTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 --- DoubleTypeFixture.cs 5 May 2005 19:28:04 -0000 1.3 *************** *** 73,82 **** basic.DoubleValue = _values[0]; ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); basic = (DoubleClass)s.Load( typeof(DoubleClass), 1 ); --- 73,82 ---- basic.DoubleValue = _values[0]; ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); basic = (DoubleClass)s.Load( typeof(DoubleClass), 1 ); Index: BinaryBlobTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/BinaryBlobTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BinaryBlobTypeFixture.cs 12 Dec 2004 07:18:26 -0000 1.1 --- BinaryBlobTypeFixture.cs 5 May 2005 19:28:04 -0000 1.2 *************** *** 46,50 **** public void ReadWrite() { ! ISession s = sessions.OpenSession(); BinaryBlobClass b = new BinaryBlobClass(); b.BinaryBlob = System.Text.UnicodeEncoding.UTF8.GetBytes("foo/bar/baz"); --- 46,50 ---- public void ReadWrite() { ! ISession s = OpenSession(); BinaryBlobClass b = new BinaryBlobClass(); b.BinaryBlob = System.Text.UnicodeEncoding.UTF8.GetBytes("foo/bar/baz"); *************** *** 53,57 **** s.Close(); ! s = sessions.OpenSession(); b = (BinaryBlobClass)s.Load( typeof(BinaryBlobClass), b.Id ); ObjectAssert.AreEqual( System.Text.UnicodeEncoding.UTF8.GetBytes("foo/bar/baz") , b.BinaryBlob ); --- 53,57 ---- s.Close(); ! s = OpenSession(); b = (BinaryBlobClass)s.Load( typeof(BinaryBlobClass), b.Id ); ObjectAssert.AreEqual( System.Text.UnicodeEncoding.UTF8.GetBytes("foo/bar/baz") , b.BinaryBlob ); Index: GuidTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/GuidTypeFixture.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GuidTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.5 --- GuidTypeFixture.cs 5 May 2005 19:28:04 -0000 1.6 *************** *** 69,78 **** basic.GuidValue = val; ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); basic = (GuidClass)s.Load( typeof(GuidClass), 1 ); --- 69,78 ---- basic.GuidValue = val; ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); basic = (GuidClass)s.Load( typeof(GuidClass), 1 ); Index: DecimalTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/DecimalTypeFixture.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DecimalTypeFixture.cs 8 Apr 2005 04:07:29 -0000 1.5 --- DecimalTypeFixture.cs 5 May 2005 19:28:04 -0000 1.6 *************** *** 70,79 **** basic.DecimalValue = expected; ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); basic = (DecimalClass)s.Load( typeof(DecimalClass), 1 ); --- 70,79 ---- basic.DecimalValue = expected; ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); basic = (DecimalClass)s.Load( typeof(DecimalClass), 1 ); Index: BooleanTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/BooleanTypeFixture.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BooleanTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.4 --- BooleanTypeFixture.cs 5 May 2005 19:28:04 -0000 1.5 *************** *** 62,71 **** basic.BooleanValue = true; ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); basic = (BooleanClass)s.Load( typeof(BooleanClass), 1 ); --- 62,71 ---- basic.BooleanValue = true; ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); basic = (BooleanClass)s.Load( typeof(BooleanClass), 1 ); Index: ByteTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/ByteTypeFixture.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ByteTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.4 --- ByteTypeFixture.cs 5 May 2005 19:28:04 -0000 1.5 *************** *** 63,72 **** basic.ByteValue = (byte)43; ! ISession s = sessions.OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = sessions.OpenSession(); basic = (ByteClass)s.Load( typeof(ByteClass), 1 ); --- 63,72 ---- basic.ByteValue = (byte)43; ! ISession s = OpenSession(); s.Save(basic); s.Flush(); s.Close(); ! s = OpenSession(); basic = (ByteClass)s.Load( typeof(ByteClass), 1 ); Index: BinaryTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/BinaryTypeFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BinaryTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 --- BinaryTypeFixture.cs 5 May 2005 19:28:04 -0000 1.3 *************** *** 79,88 **** bcBinary.WithSize = null; ! ISession s = sessions.OpenSession(); s.Save(bcBinary); s.Flush(); s.Close(); ! s = sessions.OpenSession(); BinaryClass bcBinaryLoaded = (BinaryClass)s.Load( typeof(BinaryClass), 1 ); --- 79,88 ---- bcBinary.WithSize = null; ! ISession s = OpenSession(); s.Save(bcBinary); s.Flush(); s.Close(); ! s = OpenSession(); BinaryClass bcBinaryLoaded = (BinaryClass)s.Load( typeof(BinaryClass), 1 ); *************** *** 109,118 **** bcBinary.WithSize = new byte[0]; ! ISession s = sessions.OpenSession(); s.Save(bcBinary); s.Flush(); s.Close(); ! s = sessions.OpenSession(); BinaryClass bcBinaryLoaded = (BinaryClass)s.Load( typeof(BinaryClass), 1 ); --- 109,118 ---- bcBinary.WithSize = new byte[0]; ! ISession s = OpenSession(); s.Save(bcBinary); s.Flush(); s.Close(); ! s = OpenSession(); BinaryClass bcBinaryLoaded = (BinaryClass)s.Load( typeof(BinaryClass), 1 ); *************** *** 136,145 **** BinaryClass expected = Create( 1 ); ! ISession s = sessions.OpenSession(); s.Save( bcBinary ); s.Flush(); s.Close(); ! s = sessions.OpenSession(); bcBinary = (BinaryClass)s.Load( typeof(BinaryClass), 1 ); --- 136,145 ---- BinaryClass expected = Create( 1 ); ! ISession s = OpenSession(); s.Save( bcBinary ); s.Flush(); s.Close(); ! s = OpenSession(); bcBinary = (BinaryClass)s.Load( typeof(BinaryClass), 1 ); Index: StringClobTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/StringClobTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StringClobTypeFixture.cs 12 Dec 2004 07:18:27 -0000 1.1 --- StringClobTypeFixture.cs 5 May 2005 19:28:21 -0000 1.2 *************** *** 44,48 **** public void ReadWrite() { ! ISession s = sessions.OpenSession(); StringClobClass b = new StringClobClass(); b.StringClob = "foo/bar/baz"; --- 44,48 ---- public void ReadWrite() { ! ISession s = OpenSession(); StringClobClass b = new StringClobClass(); b.StringClob = "foo/bar/baz"; *************** *** 51,55 **** s.Close(); ! s = sessions.OpenSession(); b = (StringClobClass)s.Load( typeof(StringClobClass), b.Id ); Assert.AreEqual( "foo/bar/baz", b.StringClob ); --- 51,55 ---- s.Close(); ! s = OpenSession(); b = (StringClobClass)s.Load( typeof(StringClobClass), b.Id ); Assert.AreEqual( "foo/bar/baz", b.StringClob ); |
From: Sergey K. <jus...@us...> - 2005-05-05 19:28:51
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Id In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate/Id Modified Files: TableGenerator.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: TableGenerator.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Id/TableGenerator.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** TableGenerator.cs 14 Mar 2005 22:41:16 -0000 1.17 --- TableGenerator.cs 5 May 2005 19:28:22 -0000 1.18 *************** *** 113,125 **** public virtual object Generate( ISessionImplementor session, object obj ) { ! //this has to be done using a different connection to the containing ! //transaction becase the new hi value must remain valid even if the ! //contataining transaction rolls back ! IDbConnection conn = session.Factory.OpenConnection(); int result; int rows; try { ! IDbTransaction trans = conn.BeginTransaction(); do --- 113,143 ---- public virtual object Generate( ISessionImplementor session, object obj ) { ! // This has to be done using a different connection to the containing ! // transaction becase the new hi value must remain valid even if the ! // containing transaction rolls back. ! // ! // We make an exception for SQLite and use the session's connection, ! // since SQLite only allows one connection to the database. ! ! bool isSQLite = session.Factory.Dialect is Dialect.SQLiteDialect; ! IDbConnection conn; ! if( isSQLite ) ! { ! conn = session.Connection; ! } ! else ! { ! conn = session.Factory.OpenConnection(); ! } ! int result; int rows; try { ! IDbTransaction trans = null; ! if( !isSQLite ) ! { ! trans = conn.BeginTransaction(); ! } do *************** *** 182,186 **** while( rows == 0 ); ! trans.Commit(); return result; --- 200,207 ---- while( rows == 0 ); ! if( !isSQLite ) ! { ! trans.Commit(); ! } return result; *************** *** 189,193 **** finally { ! session.Factory.CloseConnection( conn ); } } --- 210,217 ---- finally { ! if( !isSQLite ) ! { ! session.Factory.CloseConnection( conn ); ! } } } |
From: Sergey K. <jus...@us...> - 2005-05-05 19:28:51
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate/Dialect Modified Files: Dialect.cs MySQLDialect.cs SQLiteDialect.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: SQLiteDialect.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SQLiteDialect.cs 1 Mar 2005 16:24:44 -0000 1.2 --- SQLiteDialect.cs 5 May 2005 19:28:21 -0000 1.3 *************** *** 34,37 **** --- 34,43 ---- RegisterColumnType(DbType.VarNumeric, "NUMERIC"); RegisterColumnType(DbType.String, "TEXT"); + RegisterColumnType(DbType.AnsiStringFixedLength, "TEXT"); + RegisterColumnType(DbType.StringFixedLength, "TEXT"); + + RegisterColumnType(DbType.DateTime, "TEXT"); + RegisterColumnType(DbType.Time, "TEXT"); + RegisterColumnType(DbType.Boolean, "INTEGER"); } *************** *** 43,46 **** --- 49,74 ---- get { return "select last_insert_rowid()"; } } + + public override bool HasAlterTable + { + get { return false; } + } + + public override bool DropConstraints + { + get { return false; } + } + + public override bool SupportsForUpdate + { + get { return false; } + } + + // TODO: SQLite actually does support subselects, but gives syntax errors + // in tests. Need to investigate this. + public override bool SupportsSubSelects + { + get { return false; } + } } } Index: Dialect.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect/Dialect.cs,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** Dialect.cs 14 Mar 2005 14:33:16 -0000 1.46 --- Dialect.cs 5 May 2005 19:28:21 -0000 1.47 *************** *** 193,196 **** --- 193,204 ---- /// <summary> + /// Does this dialect support subselects? + /// </summary> + public virtual bool SupportsSubSelects + { + get { return true; } + } + + /// <summary> /// Does this dialect support the <c>UNIQUE</c> column syntax? /// </summary> Index: MySQLDialect.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Dialect/MySQLDialect.cs,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** MySQLDialect.cs 14 Mar 2005 14:33:16 -0000 1.29 --- MySQLDialect.cs 5 May 2005 19:28:21 -0000 1.30 *************** *** 202,205 **** --- 202,212 ---- return " drop index " + constraintName; } + + public override bool SupportsSubSelects + { + // TODO: newer MySQLs actually support subselects + get { return false; } + } + } } \ No newline at end of file |
From: Sergey K. <jus...@us...> - 2005-05-05 19:28:49
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/ProxyTest Modified Files: NHibernateProxyHelperFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: NHibernateProxyHelperFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyTest/NHibernateProxyHelperFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NHibernateProxyHelperFixture.cs 17 Jan 2005 03:40:52 -0000 1.2 --- NHibernateProxyHelperFixture.cs 5 May 2005 19:28:03 -0000 1.3 *************** *** 49,53 **** try { ! s = sessions.OpenSession(); a.Name = "a proxy"; s.Save( a ); --- 49,53 ---- try { ! s = OpenSession(); a.Name = "a proxy"; s.Save( a ); *************** *** 64,68 **** try { ! s = sessions.OpenSession(); System.Type type = NHibernateProxyHelper.GetClass( a ); Assert.AreEqual( typeof(AProxy), type, "Should have returned 'A' for a non-proxy" ); --- 64,68 ---- try { ! s = OpenSession(); System.Type type = NHibernateProxyHelper.GetClass( a ); Assert.AreEqual( typeof(AProxy), type, "Should have returned 'A' for a non-proxy" ); |
From: Sergey K. <jus...@us...> - 2005-05-05 19:28:49
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyInterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/ProxyInterface Modified Files: CastleProxyFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: CastleProxyFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/ProxyInterface/CastleProxyFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CastleProxyFixture.cs 17 Jan 2005 03:40:52 -0000 1.2 --- CastleProxyFixture.cs 5 May 2005 19:28:03 -0000 1.3 *************** *** 21,25 **** public void Proxy() { ! ISession s = sessions.OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; --- 21,25 ---- public void Proxy() { ! ISession s = OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; *************** *** 29,33 **** s.Close(); ! s = sessions.OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.IsFalse( NHibernateUtil.IsInitialized( ap ) ); --- 29,33 ---- s.Close(); ! s = OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.IsFalse( NHibernateUtil.IsInitialized( ap ) ); *************** *** 44,48 **** public void ProxySerialize() { ! ISession s = sessions.OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; --- 44,48 ---- public void ProxySerialize() { ! ISession s = OpenSession(); CastleProxy ap = new CastleProxyImpl(); ap.Id = 1; *************** *** 52,56 **** s.Close(); ! s = sessions.OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.AreEqual( 1, ap.Id ); --- 52,56 ---- s.Close(); ! s = OpenSession(); ap = (CastleProxy)s.Load( typeof(CastleProxyImpl), ap.Id ); Assert.AreEqual( 1, ap.Id ); *************** *** 83,87 **** public void SerializeNotFoundProxy() { ! ISession s = sessions.OpenSession(); // this does not actually exists in db CastleProxy notThere = (CastleProxy)s.Load( typeof(CastleProxyImpl), 5 ); --- 83,87 ---- public void SerializeNotFoundProxy() { ! ISession s = OpenSession(); // this does not actually exists in db CastleProxy notThere = (CastleProxy)s.Load( typeof(CastleProxyImpl), 5 ); |
From: Sergey K. <jus...@us...> - 2005-05-05 19:28:48
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/Docs/ExampleParentChild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21725/src/NHibernate.Test/NHSpecificTest/Docs/ExampleParentChild Modified Files: UpdateFixture.cs Log Message: * Better SQLite support - only about 20 test cases fail on SQLite, mostly due to bugs in SQLite ADO.NET provider * Modified TestCase to clean up unclosed sessions in TearDown - not completely bullet-proof, since some tests don't call TearDown, but covers a lot of the cases. * Changed sessions.OpenSession() to OpenSession() in all tests * Added Dialect.SupportsSubSelects property for use in tests instead of (dialect is SomeDialect) expressions. Index: UpdateFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/Docs/ExampleParentChild/UpdateFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** UpdateFixture.cs 12 Apr 2005 12:51:13 -0000 1.1 --- UpdateFixture.cs 5 May 2005 19:28:02 -0000 1.2 *************** *** 43,47 **** public void Update() { ! ISession session1 = sessions.OpenSession(); Parent parent1 = new Parent(); --- 43,47 ---- public void Update() { ! ISession session1 = OpenSession(); Parent parent1 = new Parent(); *************** *** 54,58 **** session1.Close(); ! ISession session2 = sessions.OpenSession(); Parent parent = session2.Load( typeof( Parent ), pId ) as Parent; Child child = session2.Load( typeof( Child ), cId ) as Child; --- 54,58 ---- session1.Close(); ! ISession session2 = OpenSession(); Parent parent = session2.Load( typeof( Parent ), pId ) as Parent; Child child = session2.Load( typeof( Child ), cId ) as Child; *************** *** 63,67 **** parent.AddChild( newChild ); ! ISession session = sessions.OpenSession(); session.Update( parent ); session.Flush(); --- 63,67 ---- parent.AddChild( newChild ); ! ISession session = OpenSession(); session.Update( parent ); session.Flush(); |