Skip to content

Commit d53b2aa

Browse files
author
Dario Quintana
committed
nuget refs added, moved to .Net 4,made it build
1 parent 2d20282 commit d53b2aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+319230
-3539
lines changed

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Ignore file for Visual Studio 2008/2010
2+
3+
*.obj
4+
*.exe
5+
*.pdb
6+
*.user
7+
*.aps
8+
*.pch
9+
*.vspscc
10+
*_i.c
11+
*_p.c
12+
*.ncb
13+
*.suo
14+
*.tlb
15+
*.tlh
16+
*.bak
17+
*.cache
18+
*.ilk
19+
*.log
20+
*.lib
21+
*.sbr
22+
*.scc
23+
*.tokens
24+
[Bb]in
25+
[Db]ebug*/
26+
obj/
27+
[Rr]elease*/
28+
*resharper*
29+
_ReSharper*/
30+
[Tt]est[Rr]esult*
31+
[Bb]uild[Ll]og.*
32+
*.[Pp]ublish.xml
33+
NHibernate.dll
34+
build/
35+
AssemblyInfo.cs
36+
hibernate.cfg.xml
37+
available-test-configurations
38+
current-test-configuration
39+
NHibernate.VisualState.xml
Lines changed: 99 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,99 @@
1-
<?xml version="1.0"?>
2-
<configuration>
3-
<configSections>
4-
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
5-
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
6-
</configSections>
7-
8-
<connectionStrings>
9-
<add name="TestConnectionString" connectionString="TestConnectionString-TestConnectionString"/>
10-
</connectionStrings>
11-
12-
<!--
13-
hibernate-configuration section
14-
15-
You don't need to change this section for your own use.
16-
You can write your own hibernate.cfg.xml to override all session-factory configuration.
17-
Templates are available in NHibernate.Config.Templates folder.
18-
-->
19-
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
20-
<bytecode-provider type="lcg"/>
21-
<reflection-optimizer use="true"/>
22-
<session-factory name="NHibernate.Test">
23-
<property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Search.Tests</property>
24-
<property name="connection.isolation">ReadCommitted</property>
25-
26-
<!-- This is the System.Data.dll provider for MSSQL Server -->
27-
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
28-
<property name="connection.connection_string">Server=.\sqlexpress;initial catalog=nhsearch;Integrated Security=SSPI</property>
29-
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
30-
<property name="adonet.batch_size">10</property>
31-
<property name="prepare_sql">false</property>
32-
<property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property>
33-
<property name="cache.use_query_cache">true</property>
34-
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
35-
36-
<!-- the following part is not read by the test, they are here being a template-->
37-
<listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-insert"/>
38-
<listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-update"/>
39-
<listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-delete"/>
40-
<listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-recreate"/>
41-
<listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-remove"/>
42-
<listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-update"/>
43-
</session-factory>
44-
</hibernate-configuration>
45-
46-
<!-- This section contains the log4net configuration settings -->
47-
<log4net debug="false">
48-
<appender name="trace" type="log4net.Appender.TraceAppender, log4net">
49-
<layout type="log4net.Layout.PatternLayout,log4net">
50-
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/>
51-
</layout>
52-
</appender>
53-
54-
<appender name="console" type="log4net.Appender.ConsoleAppender, log4net">
55-
<layout type="log4net.Layout.PatternLayout,log4net">
56-
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/>
57-
</layout>
58-
</appender>
59-
60-
<appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net">
61-
<param name="File" value="log.txt"/>
62-
<param name="AppendToFile" value="false"/>
63-
<param name="RollingStyle" value="Date"/>
64-
<param name="DatePattern" value="yyyy.MM.dd"/>
65-
<param name="StaticLogFileName" value="true"/>
66-
67-
<layout type="log4net.Layout.PatternLayout,log4net">
68-
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
69-
</layout>
70-
</appender>
71-
72-
<!-- Setup the root category, add the appenders and set the default priority -->
73-
<root>
74-
<priority value="WARN"/>
75-
<appender-ref ref="rollingFile"/>
76-
</root>
77-
78-
<logger name="NHibernate.Bytecode.CodeDom">
79-
<priority value="OFF"/>
80-
</logger>
81-
82-
<logger name="NHibernate.SQL">
83-
<level value="OFF"/>
84-
</logger>
85-
86-
<logger name="NHibernate.Tool.hbm2ddl.SchemaExport">
87-
<level value="WARN"/>
88-
</logger>
89-
</log4net>
90-
91-
<runtime>
92-
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v1.1.4322">
93-
<qualifyAssembly partialName="System.Web" fullName="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
94-
</assemblyBinding>
95-
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727">
96-
<qualifyAssembly partialName="System.Web" fullName="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
97-
</assemblyBinding>
98-
</runtime>
99-
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
1+
<?xml version="1.0"?>
2+
<configuration>
3+
<configSections>
4+
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
5+
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
6+
</configSections>
7+
8+
<connectionStrings>
9+
<add name="TestConnectionString" connectionString="TestConnectionString-TestConnectionString"/>
10+
</connectionStrings>
11+
12+
<!--
13+
hibernate-configuration section
14+
15+
You don't need to change this section for your own use.
16+
You can write your own hibernate.cfg.xml to override all session-factory configuration.
17+
Templates are available in NHibernate.Config.Templates folder.
18+
-->
19+
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
20+
<bytecode-provider type="lcg"/>
21+
<reflection-optimizer use="true"/>
22+
<session-factory name="NHibernate.Test">
23+
<property name="connection.provider">NHibernate.Test.DebugConnectionProvider, NHibernate.Search.Tests</property>
24+
<property name="connection.isolation">ReadCommitted</property>
25+
26+
<!-- This is the System.Data.dll provider for MSSQL Server -->
27+
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
28+
<property name="connection.connection_string">Server=.\sqlexpress;initial catalog=nhsearch;Integrated Security=SSPI</property>
29+
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
30+
<property name="adonet.batch_size">10</property>
31+
<property name="prepare_sql">false</property>
32+
<property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider, NHibernate</property>
33+
<property name="cache.use_query_cache">true</property>
34+
<property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
35+
36+
<!-- the following part is not read by the test, they are here being a template-->
37+
<listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-insert"/>
38+
<listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-update"/>
39+
<listener class="NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search" type="post-delete"/>
40+
<listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-recreate"/>
41+
<listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-remove"/>
42+
<listener class="NHibernate.Search.Event.FullTextIndexCollectionEventListener, NHibernate.Search" type="post-collection-update"/>
43+
</session-factory>
44+
</hibernate-configuration>
45+
46+
<!-- This section contains the log4net configuration settings -->
47+
<log4net debug="false">
48+
<appender name="trace" type="log4net.Appender.TraceAppender, log4net">
49+
<layout type="log4net.Layout.PatternLayout,log4net">
50+
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/>
51+
</layout>
52+
</appender>
53+
54+
<appender name="console" type="log4net.Appender.ConsoleAppender, log4net">
55+
<layout type="log4net.Layout.PatternLayout,log4net">
56+
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n"/>
57+
</layout>
58+
</appender>
59+
60+
<appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net">
61+
<param name="File" value="log.txt"/>
62+
<param name="AppendToFile" value="false"/>
63+
<param name="RollingStyle" value="Date"/>
64+
<param name="DatePattern" value="yyyy.MM.dd"/>
65+
<param name="StaticLogFileName" value="true"/>
66+
67+
<layout type="log4net.Layout.PatternLayout,log4net">
68+
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
69+
</layout>
70+
</appender>
71+
72+
<!-- Setup the root category, add the appenders and set the default priority -->
73+
<root>
74+
<priority value="WARN"/>
75+
<appender-ref ref="rollingFile"/>
76+
</root>
77+
78+
<logger name="NHibernate.Bytecode.CodeDom">
79+
<priority value="OFF"/>
80+
</logger>
81+
82+
<logger name="NHibernate.SQL">
83+
<level value="OFF"/>
84+
</logger>
85+
86+
<logger name="NHibernate.Tool.hbm2ddl.SchemaExport">
87+
<level value="WARN"/>
88+
</logger>
89+
</log4net>
90+
91+
<runtime>
92+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v1.1.4322">
93+
<qualifyAssembly partialName="System.Web" fullName="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
94+
</assemblyBinding>
95+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727">
96+
<qualifyAssembly partialName="System.Web" fullName="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
97+
</assemblyBinding>
98+
</runtime>
99+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
using System.Collections;
2-
using Iesi.Collections.Generic;
3-
using NHibernate.Search.Attributes;
4-
using System.Collections.Generic;
5-
6-
namespace NHibernate.Search.Tests.Embedded
7-
{
8-
[Indexed]
9-
public class Product
10-
{
11-
[DocumentId]
12-
private int id;
13-
[Field(Index.Tokenized)]
14-
private string name;
15-
[IndexedEmbedded]
16-
private ISet<Author> authors = new HashedSet<Author>();
17-
[IndexedEmbedded]
18-
private IDictionary<string, Order> orders = new Dictionary<string, Order>();
19-
20-
public virtual int Id
21-
{
22-
get { return id; }
23-
set { id = value; }
24-
}
25-
26-
public virtual string Name
27-
{
28-
get { return name; }
29-
set { name = value; }
30-
}
31-
32-
public virtual ISet<Author> Authors
33-
{
34-
get { return authors; }
35-
set { authors = value; }
36-
}
37-
38-
public virtual IDictionary<string, Order> Orders
39-
{
40-
get { return orders; }
41-
set { orders = value; }
42-
}
43-
}
44-
}
1+
using System.Collections.Generic;
2+
using Iesi.Collections.Generic;
3+
using NHibernate.Search.Attributes;
4+
5+
6+
namespace NHibernate.Search.Tests.Embedded
7+
{
8+
[Indexed]
9+
public class Product
10+
{
11+
[DocumentId]
12+
private int id;
13+
[Field(Index.Tokenized)]
14+
private string name;
15+
[IndexedEmbedded]
16+
private Iesi.Collections.Generic.ISet<Author> authors = new HashedSet<Author>();
17+
[IndexedEmbedded]
18+
private IDictionary<string, Order> orders = new Dictionary<string, Order>();
19+
20+
public virtual int Id
21+
{
22+
get { return id; }
23+
set { id = value; }
24+
}
25+
26+
public virtual string Name
27+
{
28+
get { return name; }
29+
set { name = value; }
30+
}
31+
32+
public virtual Iesi.Collections.Generic.ISet<Author> Authors
33+
{
34+
get { return authors; }
35+
set { authors = value; }
36+
}
37+
38+
public virtual IDictionary<string, Order> Orders
39+
{
40+
get { return orders; }
41+
set { orders = value; }
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)