Skip to content

Commit ff75012

Browse files
committed
Updated NHibernate 3.x assemblies to 3.2
1 parent ffc08e2 commit ff75012

33 files changed

+7695
-42610
lines changed

RakeFile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ gem 'albacore', '=0.2.4'
33
require 'albacore'
44
require 'tools/albacore/nuspec_patch'
55

6+
NH_VERSION = '3.x'
7+
68
def get_version
79
ENV['BUILD_NUMBER'] || '1.3.0.0'
810
end
@@ -57,7 +59,7 @@ namespace :source do
5759
end
5860

5961
task :nhibernate_version, :nhibernate_version do |t,args|
60-
args.with_defaults :nhibernate_version => ENV['nhibernate_version'] || '2.1'
62+
args.with_defaults :nhibernate_version => ENV['nhibernate_version'] || NH_VERSION
6163

6264
raise "Unknown NHibernate version #{args.nhibernate_version} (check your tools/NHibernate folder)" unless File.directory? "tools/NHibernate/#{args.nhibernate_version}"
6365

@@ -72,7 +74,7 @@ namespace :source do
7274

7375
desc 'Compile the source'
7476
msbuild :compile, [:nhibernate_version] => :nhibernate_version do |msb,args|
75-
args.with_defaults :nhibernate_version => ENV['nhibernate_version'] || '2.1'
77+
args.with_defaults :nhibernate_version => ENV['nhibernate_version'] || NH_VERSION
7678

7779
nh_version_precompiler_switch = 'NH' + args.nhibernate_version.gsub('.', '')
7880

src/FluentNHibernate.Testing/AutoMapping/TestFixtures.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,16 @@ public Object NullSafeGet(IDataReader rs, string[] names, ISessionImplementor se
359359
return (first == null && second == null) ? null : new string[] { first, second };
360360
}
361361

362-
#if NH3x
363-
public void NullSafeSet(IDbCommand st, Object value, int index, bool[] unknown, ISessionImplementor session)
362+
#if NH21
363+
public void NullSafeSet(IDbCommand st, Object value, int index, ISessionImplementor session)
364364
{
365365
DoubleString ds = value as DoubleString ?? new DoubleString();
366366

367367
NHibernateUtil.String.NullSafeSet(st, ds.s1, index, session);
368368
NHibernateUtil.String.NullSafeSet(st, ds.s2, index + 1, session);
369369
}
370370
#else
371-
public void NullSafeSet(IDbCommand st, Object value, int index, ISessionImplementor session)
371+
public void NullSafeSet(IDbCommand st, Object value, int index, bool[] unknown, ISessionImplementor session)
372372
{
373373
DoubleString ds = value as DoubleString ?? new DoubleString();
374374

src/FluentNHibernate/Cfg/Db/SybaseSQLAnywhere.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ public class SQLAnywhereConfiguration : PersistenceConfiguration<SQLAnywhereConf
77
{
88
protected SQLAnywhereConfiguration()
99
{
10-
Driver<ASA10ClientDriver>();
10+
#if NH21
11+
Driver<ASA10ClientDriver>();
12+
#else
13+
Driver<SybaseSQLAnywhereDriver>();
14+
#endif
1115
}
1216

1317
public static SQLAnywhereConfiguration SQLAnywhere9
1418
{
1519
get { return new SQLAnywhereConfiguration().Dialect<SybaseASA9Dialect>(); }
1620
}
1721

18-
#if NH3x
22+
#if !NH21
1923
public static SQLAnywhereConfiguration SQLAnywhere10
2024
{
2125
get { return new SQLAnywhereConfiguration().Dialect<SybaseSQLAnywhere10Dialect>(); }

tools/NHibernate/3.x/Castle.Core.dll

-290 KB
Binary file not shown.

tools/NHibernate/3.x/Castle.Core.xml

Lines changed: 0 additions & 4927 deletions
This file was deleted.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

tools/NHibernate/3.x/NHibernate.ByteCode.Castle.xml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)