diff --git a/.gitignore b/.gitignore
index a62522e..97b831b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,6 @@ _ReSharper*
*ReSharper.*
*.suo
*.cache
-* Thumbs.db
\ No newline at end of file
+* Thumbs.db
+*.user
+**/packages/**
\ No newline at end of file
diff --git a/src/Castle.ActiveRecord.Framework.Internal.Tests/App.config b/src/Castle.ActiveRecord.Framework.Internal.Tests/App.config
index d167f95..deefe26 100644
--- a/src/Castle.ActiveRecord.Framework.Internal.Tests/App.config
+++ b/src/Castle.ActiveRecord.Framework.Internal.Tests/App.config
@@ -1,21 +1,19 @@
-
+
-
-
+
+
-
-
-
+
+
+
@@ -46,4 +44,20 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Castle.ActiveRecord.Framework.Internal.Tests/AssemblyXmlGenerationTestCase.cs b/src/Castle.ActiveRecord.Framework.Internal.Tests/AssemblyXmlGenerationTestCase.cs
index 3cfbfae..9eb4ec4 100644
--- a/src/Castle.ActiveRecord.Framework.Internal.Tests/AssemblyXmlGenerationTestCase.cs
+++ b/src/Castle.ActiveRecord.Framework.Internal.Tests/AssemblyXmlGenerationTestCase.cs
@@ -62,14 +62,9 @@ public void CanGetCustomValueFromRawXmlDerivedAttribute()
public void WillUseRegisteredAssembliesToLookForRawMappingXmlEvenIfThereAreNoActiveRecordTypesInThatAssembly()
{
ActiveRecordStarter.ResetInitializationFlag();
- ActiveRecordStarter.Initialize(
- typeof(RegisterNHibernateClassMapping).Assembly,
- GetConfigSource()
- );
- ISessionFactory factory = ActiveRecordMediator.GetSessionFactoryHolder()
- .GetSessionFactory(typeof(ActiveRecordBase));
- IClassMetadata metadata = factory
- .GetClassMetadata(typeof(NHibernateClass));
+ ActiveRecordStarter.Initialize(typeof(RegisterNHibernateClassMapping).Assembly, GetConfigSource());
+ ISessionFactory factory = ActiveRecordMediator.GetSessionFactoryHolder().GetSessionFactory(typeof(ActiveRecordBase));
+ IClassMetadata metadata = factory.GetClassMetadata(typeof(NHibernateClass));
Assert.IsNotNull(metadata);
}
}
diff --git a/src/Castle.ActiveRecord.Framework.Internal.Tests/Castle.ActiveRecord.Framework.Internal.Tests-vs2010.csproj b/src/Castle.ActiveRecord.Framework.Internal.Tests/Castle.ActiveRecord.Framework.Internal.Tests-vs2010.csproj
index 15d8eb1..90b359a 100644
--- a/src/Castle.ActiveRecord.Framework.Internal.Tests/Castle.ActiveRecord.Framework.Internal.Tests-vs2010.csproj
+++ b/src/Castle.ActiveRecord.Framework.Internal.Tests/Castle.ActiveRecord.Framework.Internal.Tests-vs2010.csproj
@@ -6,6 +6,7 @@
Client
NET40-Debug
AnyCPU
+ 2b20b678
Local
@@ -100,17 +101,17 @@
False
..\..\lib\$(BuildConfigKey)\Castle.Components.Validator.dll
-
- False
- ..\..\lib\$(BuildConfigKey)\Castle.Core.dll
+
+ ..\..\packages\Castle.Core.3.3.3\lib\net40-client\Castle.Core.dll
+ True
-
- False
- ..\..\lib\Iesi.Collections.dll
+
+ ..\..\packages\Iesi.Collections.4.0.0.4000\lib\net40\Iesi.Collections.dll
+ True
-
- False
- ..\..\lib\NHibernate.dll
+
+ ..\..\packages\NHibernate.4.0.3.4000\lib\net40\NHibernate.dll
+ True
nunit.framework
@@ -126,6 +127,10 @@
System.Data
+
+ ..\..\packages\System.Data.SQLite.Core.1.0.96.0\lib\net40\System.Data.SQLite.dll
+ True
+
System.XML
@@ -247,6 +252,7 @@
+
@@ -291,4 +297,11 @@
xcopy "$(ProjectDir)App.config" "$(TargetDir)" /y/c
move /y "$(TargetDir)App.config" "$(TargetDir)$(TargetFileName).config"
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
\ No newline at end of file
diff --git a/src/Castle.ActiveRecord.Framework.Internal.Tests/Model/Company.cs b/src/Castle.ActiveRecord.Framework.Internal.Tests/Model/Company.cs
index 37461f7..9af3eb6 100644
--- a/src/Castle.ActiveRecord.Framework.Internal.Tests/Model/Company.cs
+++ b/src/Castle.ActiveRecord.Framework.Internal.Tests/Model/Company.cs
@@ -17,7 +17,7 @@ namespace Castle.ActiveRecord.Framework.Internal.Tests.Model
///
/// Warning: This is a wrong definition!
///
- [ActiveRecord(DiscriminatorColumn="column", DiscriminatorValue="1"), JoinedBase]
+ [ActiveRecord(DiscriminatorColumn = "column", DiscriminatorValue = "1"), JoinedBase]
public class Company : ActiveRecordBase
{
public Company()
diff --git a/src/Castle.ActiveRecord.Framework.Internal.Tests/packages.config b/src/Castle.ActiveRecord.Framework.Internal.Tests/packages.config
new file mode 100644
index 0000000..73cd3e3
--- /dev/null
+++ b/src/Castle.ActiveRecord.Framework.Internal.Tests/packages.config
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Castle.ActiveRecord.Tests.Model/Castle.ActiveRecord.Tests.Model-vs2010.csproj b/src/Castle.ActiveRecord.Tests.Model/Castle.ActiveRecord.Tests.Model-vs2010.csproj
index 5ebf5bc..c4f0eb2 100644
--- a/src/Castle.ActiveRecord.Tests.Model/Castle.ActiveRecord.Tests.Model-vs2010.csproj
+++ b/src/Castle.ActiveRecord.Tests.Model/Castle.ActiveRecord.Tests.Model-vs2010.csproj
@@ -4,8 +4,9 @@
$(MSBuildProjectDirectory)\..\..
v4.0
Client
- NET40-Debug
+ NET40-Debug
AnyCPU
+ c355086d
9.0.30729
@@ -21,11 +22,10 @@
3.5
-
v4.0
-
+
bin\NET40-Debug\
true
full
@@ -42,7 +42,7 @@
v4.0
-
+
bin\NET40-Release\
pdbonly
true
@@ -81,20 +81,27 @@
AnyCPU
prompt
-
False
..\..\lib\$(BuildConfigKey)\Castle.Components.Validator.dll
-
- False
- ..\..\lib\NHibernate.dll
+
+ ..\..\packages\Iesi.Collections.4.0.0.4000\lib\net40\Iesi.Collections.dll
+ True
+
+
+ ..\..\packages\NHibernate.4.0.3.4000\lib\net40\NHibernate.dll
+ True
3.5
+
+ ..\..\packages\System.Data.SQLite.Core.1.0.96.0\lib\net40\System.Data.SQLite.dll
+ True
+
3.5
@@ -140,9 +147,20 @@
Castle.ActiveRecord-vs2010
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Castle.ActiveRecord.Tests/App-net-3.5.config b/src/Castle.ActiveRecord.Tests/App-net-3.5.config
index 561d675..ad30acc 100644
--- a/src/Castle.ActiveRecord.Tests/App-net-3.5.config
+++ b/src/Castle.ActiveRecord.Tests/App-net-3.5.config
@@ -1,55 +1,55 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -57,25 +57,25 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Castle.ActiveRecord.Tests/App.config b/src/Castle.ActiveRecord.Tests/App.config
index d65f0e7..ea66eff 100644
--- a/src/Castle.ActiveRecord.Tests/App.config
+++ b/src/Castle.ActiveRecord.Tests/App.config
@@ -1,65 +1,85 @@
-
+
-
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Castle.ActiveRecord.Tests/Castle.ActiveRecord.Tests-vs2010.csproj b/src/Castle.ActiveRecord.Tests/Castle.ActiveRecord.Tests-vs2010.csproj
index 2ffae67..3742a52 100644
--- a/src/Castle.ActiveRecord.Tests/Castle.ActiveRecord.Tests-vs2010.csproj
+++ b/src/Castle.ActiveRecord.Tests/Castle.ActiveRecord.Tests-vs2010.csproj
@@ -6,6 +6,7 @@
Client
NET40-Debug
AnyCPU
+ 5454b8ca
Local
@@ -99,44 +100,44 @@
Castle.ActiveRecord.Tests.Model-vs2010
- {3A0B9A64-8140-429E-A3F0-5B1617CEB466}
+ {3a0b9a64-8140-429e-a3f0-5b1617ceb466}
Castle.ActiveRecord.Web
- {652F95D4-86E2-40B6-919D-CFC6E449386B}
+ {652f95d4-86e2-40b6-919d-cfc6e449386b}
Castle.ActiveRecord-vs2010
False
..\..\lib\$(BuildConfigKey)\Castle.Components.Validator.dll
-
- False
- ..\..\lib\$(BuildConfigKey)\Castle.Core.dll
+
+ ..\..\packages\Castle.Core.3.3.3\lib\net40-client\Castle.Core.dll
+ True
-
- False
- ..\..\lib\Iesi.Collections.dll
+
+ ..\..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll
+ True
+
+
+ ..\..\packages\Iesi.Collections.4.0.0.4000\lib\net40\Iesi.Collections.dll
+ True
False
..\..\lib\$(BuildConfigKey)\log4net.dll
-
- False
- ..\..\lib\Lucene.Net.dll
+
+ ..\..\packages\Lucene.Net.3.0.3\lib\NET40\Lucene.Net.dll
+ True
-
- False
- ..\..\lib\NHibernate.dll
+
+ ..\..\packages\NHibernate.4.0.3.4000\lib\net40\NHibernate.dll
+ True
-
- False
- ..\..\lib\NHibernate.ByteCode.Castle.dll
-
-
- False
- ..\..\lib\NHibernate.Search.dll
+
+ ..\..\packages\NHibernate.Search.MB.4.0.3.4000\lib\net40\NHibernate.Search.dll
+ True
nunit.framework
@@ -152,9 +153,9 @@
System.Data
-
- False
- ..\..\lib\$(BuildConfigKey)\System.Data.SQLite.DLL
+
+ ..\..\packages\System.Data.SQLite.Core.1.0.96.0\lib\net40\System.Data.SQLite.dll
+ True
System.XML
@@ -332,6 +333,7 @@
+
@@ -440,4 +442,11 @@
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
\ No newline at end of file
diff --git a/src/Castle.ActiveRecord.Tests/Config/ConfigurationSource.cs b/src/Castle.ActiveRecord.Tests/Config/ConfigurationSource.cs
index c03c786..aa9fad8 100644
--- a/src/Castle.ActiveRecord.Tests/Config/ConfigurationSource.cs
+++ b/src/Castle.ActiveRecord.Tests/Config/ConfigurationSource.cs
@@ -232,9 +232,9 @@ private static string GetDefaultHibernateConfigAndCloseActiveRecordSection()
{
return @"
-
+
-
+
";
}
diff --git a/src/Castle.ActiveRecord.Tests/Config/ConfigureTests.cs b/src/Castle.ActiveRecord.Tests/Config/ConfigureTests.cs
index 8fbdfe9..113850a 100644
--- a/src/Castle.ActiveRecord.Tests/Config/ConfigureTests.cs
+++ b/src/Castle.ActiveRecord.Tests/Config/ConfigureTests.cs
@@ -58,7 +58,7 @@ public void BasicSyntaxStorageConfiguration()
.ConnectionStringName("a_string")
.Driver()
.ConnectionProvider()
- .Dialect()
+ .Dialect()
.ProxiedBy()
.ShowSql();
diff --git a/src/Castle.ActiveRecord.Tests/Config/StorageConfigurationTests.cs b/src/Castle.ActiveRecord.Tests/Config/StorageConfigurationTests.cs
index cad4525..e12630f 100644
--- a/src/Castle.ActiveRecord.Tests/Config/StorageConfigurationTests.cs
+++ b/src/Castle.ActiveRecord.Tests/Config/StorageConfigurationTests.cs
@@ -67,7 +67,7 @@ public void ConnectionProviderClassIsAdded()
[Test]
public void DialectIsAdded()
{
- AssertConfiguration(_configuration.Dialect(), "dialect", "NHibernate.Dialect.MsSql2005Dialect");
+ AssertConfiguration(_configuration.Dialect(), "dialect", "NHibernate.Dialect.MsSql2012Dialect");
}
[Test]
diff --git a/src/Castle.ActiveRecord.Tests/DefaultConfigurationsTestCase.cs b/src/Castle.ActiveRecord.Tests/DefaultConfigurationsTestCase.cs
index ea3c4c3..dccf891 100644
--- a/src/Castle.ActiveRecord.Tests/DefaultConfigurationsTestCase.cs
+++ b/src/Castle.ActiveRecord.Tests/DefaultConfigurationsTestCase.cs
@@ -53,7 +53,7 @@ public void SetUp()
public void SqlServer2005Defaults()
{
var configuration = BuildConfiguration("MsSqlServer2005");
- AssertPropertyEquals(configuration, dialect, typeof(MsSql2005Dialect).AssemblyQualifiedName);
+ AssertPropertyEquals(configuration, dialect, typeof(MsSql2012Dialect).AssemblyQualifiedName);
AssertPropertyEquals(configuration, connection_provider, typeof(DriverConnectionProvider).AssemblyQualifiedName);
AssertPropertyEquals(configuration, connection_driver_class, typeof(SqlClientDriver).AssemblyQualifiedName);
AssertPropertyEquals(configuration, proxyfactory_factory_class, typeof(ProxyFactoryFactory).AssemblyQualifiedName);
@@ -80,7 +80,7 @@ public void Throws_when_connectionStringName_not_specified()
var value = @"
";
- TestDelegate action = () =>
+ TestDelegate action = () =>
BuildConfiguration(ReadConfiguration(value));
@@ -117,7 +117,7 @@ public void Throws_when_invalid_database_specified()
var ex = Assert.Throws(action);
Assert.AreEqual(
- "Specified value (IDontExist!) is not valid for 'database' attribute. Valid values are: 'MsSqlServer2000' 'MsSqlServer2005' 'MsSqlServer2008' " +
+ "Specified value (IDontExist!) is not valid for 'database' attribute. Valid values are: 'MsSqlServer2000' 'MsSqlServer2005' 'MsSqlServer2008' 'MsSqlServer2012' " +
"'SQLite' 'MySql' 'MySql5' 'Firebird' 'PostgreSQL' 'PostgreSQL81' 'PostgreSQL82' 'MsSqlCe' 'Oracle8i' 'Oracle9i' 'Oracle10g'.",
ex.Message);
}
@@ -129,7 +129,7 @@ public void Can_use_shorthand_attribute_form()
";
var configuration = BuildConfiguration(ReadConfiguration(value));
- AssertPropertyEquals(configuration, dialect, typeof(MsSql2005Dialect).AssemblyQualifiedName);
+ AssertPropertyEquals(configuration, dialect, typeof(MsSql2012Dialect).AssemblyQualifiedName);
AssertPropertyEquals(configuration, connection_connection_string_name, "foobar");
}
diff --git a/src/Castle.ActiveRecord.Tests/Event/EventListenerAttributeTest.cs b/src/Castle.ActiveRecord.Tests/Event/EventListenerAttributeTest.cs
index fbbfdf7..0034ef5 100644
--- a/src/Castle.ActiveRecord.Tests/Event/EventListenerAttributeTest.cs
+++ b/src/Castle.ActiveRecord.Tests/Event/EventListenerAttributeTest.cs
@@ -18,6 +18,8 @@ namespace Castle.ActiveRecord.Tests.Event
{
using Iesi.Collections;
using System;
+ using System.Collections.Generic;
+
using NUnit.Framework;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Tests.Model;
@@ -37,7 +39,7 @@ public void C1_ListenerMustBeAddedWhenInitialized()
public void C1_Listener_must_be_added_when_initialized_with_assembly()
{
ActiveRecordStarter.Initialize(Assembly.GetAssembly(typeof(AttributedPreLoadListener)), GetConfigSource());
- AssertListenerWasRegistered(e=>e.PreLoadEventListeners);
+ AssertListenerWasRegistered(e => e.PreLoadEventListeners);
}
[Test]
@@ -117,7 +119,7 @@ public void U3d_Multiple_events_are_served_by_different_instances_by_default()
{
InitializeSingleBase(typeof(MultipleListener));
Assert.AreNotSame(Array.Find(GetRegisteredListeners(e => e.PreLoadEventListeners), l => (l is MultipleListener)),
- Array.Find(GetRegisteredListeners(e => e.PostLoadEventListeners), l => (l is MultipleListener)));
+ Array.Find(GetRegisteredListeners(e => e.PostLoadEventListeners), l => (l is MultipleListener)));
}
[Test]
@@ -128,21 +130,21 @@ public void U3d_Multiple_events_are_served_by_the_same_instance_when_singleton_i
Array.Find(GetRegisteredListeners(e => e.PostLoadEventListeners), l => (l is MultipleSingletonListener)));
}
- [Test]
- public void Event_listeners_are_registered_only_once()
- {
- InitializeSingleBase(typeof(SamplePostInsertListener), typeof(SamplePostUpdateListener), typeof(SamplePostDeleteListener));
- Assert.AreEqual(1, Array.FindAll(GetRegisteredListeners(e => e.PostInsertEventListeners), l => (l is SamplePostInsertListener)).Length);
- Assert.AreEqual(1, Array.FindAll(GetRegisteredListeners(e => e.PostUpdateEventListeners), l => (l is SamplePostUpdateListener)).Length);
- Assert.AreEqual(1, Array.FindAll(GetRegisteredListeners(e => e.PostDeleteEventListeners), l => (l is SamplePostDeleteListener)).Length);
- }
+ [Test]
+ public void Event_listeners_are_registered_only_once()
+ {
+ InitializeSingleBase(typeof(SamplePostInsertListener), typeof(SamplePostUpdateListener), typeof(SamplePostDeleteListener));
+ Assert.AreEqual(1, Array.FindAll(GetRegisteredListeners(e => e.PostInsertEventListeners), l => (l is SamplePostInsertListener)).Length);
+ Assert.AreEqual(1, Array.FindAll(GetRegisteredListeners(e => e.PostUpdateEventListeners), l => (l is SamplePostUpdateListener)).Length);
+ Assert.AreEqual(1, Array.FindAll(GetRegisteredListeners(e => e.PostDeleteEventListeners), l => (l is SamplePostDeleteListener)).Length);
+ }
[Test]
public void U1_Listeners_are_registered_for_all_configurations()
{
InitializeMultipleBases(typeof(SamplePreInsertListener));
AssertListenerWasRegistered(e => e.PreInsertEventListeners);
- AssertListenerWasRegistered(e=>e.PreInsertEventListeners);
+ AssertListenerWasRegistered(e => e.PreInsertEventListeners);
}
[Test]
@@ -168,7 +170,7 @@ public void U1_Excluded_Listeners_are_not_registered()
[Test]
public void U1_C5_U4_No_replacement_on_excluded_configs()
{
- InitializeMultipleBases(typeof (SecondBaseReplacementLoadListener));
+ InitializeMultipleBases(typeof(SecondBaseReplacementLoadListener));
AssertListenerWasNotRegistered(e => e.LoadEventListeners);
AssertListenerWasRegistered(e => e.LoadEventListeners);
AssertListenerWasRegistered(e => e.LoadEventListeners);
@@ -180,81 +182,81 @@ public void U1_C5_U4_No_replacement_on_excluded_configs()
[EventListener]
private class SamplePreInsertListener : IPreInsertEventListener
{
- public bool OnPreInsert(PreInsertEvent @event) {return true; }
+ public bool OnPreInsert(PreInsertEvent @event) { return true; }
}
- [EventListener]
- private class SamplePostInsertListener : IPostInsertEventListener
- {
- public void OnPostInsert(PostInsertEvent @event) { }
- }
+ [EventListener]
+ private class SamplePostInsertListener : IPostInsertEventListener
+ {
+ public void OnPostInsert(PostInsertEvent @event) { }
+ }
- [EventListener]
- private class SamplePostUpdateListener : IPostUpdateEventListener
- {
- public void OnPostUpdate(PostUpdateEvent @event) { }
- }
+ [EventListener]
+ private class SamplePostUpdateListener : IPostUpdateEventListener
+ {
+ public void OnPostUpdate(PostUpdateEvent @event) { }
+ }
- [EventListener]
- private class SamplePostDeleteListener : IPostDeleteEventListener
- {
- public void OnPostDelete(PostDeleteEvent @event) { }
- }
+ [EventListener]
+ private class SamplePostDeleteListener : IPostDeleteEventListener
+ {
+ public void OnPostDelete(PostDeleteEvent @event) { }
+ }
[EventListener]
private class AdditionalLoadListener : ILoadEventListener
{
- public void OnLoad(LoadEvent @event, LoadType loadType){}
+ public void OnLoad(LoadEvent @event, LoadType loadType) { }
}
[EventListener(ReplaceExisting = true)]
private class ReplacementLoadListener : ILoadEventListener
{
- public void OnLoad(LoadEvent @event, LoadType loadType){}
+ public void OnLoad(LoadEvent @event, LoadType loadType) { }
}
[EventListener(Ignore = true)]
private class IgnoredListener : IPreLoadEventListener
{
- public void OnPreLoad(PreLoadEvent @event){}
+ public void OnPreLoad(PreLoadEvent @event) { }
}
[EventListener(Ignore = true, ReplaceExisting = true)]
private class IgnoredReplacementListener : ILoadEventListener
{
- public void OnLoad(LoadEvent @event, LoadType loadType){}
+ public void OnLoad(LoadEvent @event, LoadType loadType) { }
}
[EventListener]
private class MultipleListener : IPreLoadEventListener, IPostLoadEventListener
{
- public void OnPreLoad(PreLoadEvent @event){}
- public void OnPostLoad(PostLoadEvent @event){}
+ public void OnPreLoad(PreLoadEvent @event) { }
+ public void OnPostLoad(PostLoadEvent @event) { }
}
- [EventListener(SkipEvent = new[] {typeof (IPreLoadEventListener)})]
+ [EventListener(SkipEvent = new[] { typeof(IPreLoadEventListener) })]
private class MultipleSkippedListener : IPreLoadEventListener, IPostLoadEventListener
{
- public void OnPreLoad(PreLoadEvent @event){}
- public void OnPostLoad(PostLoadEvent @event){}
+ public void OnPreLoad(PreLoadEvent @event) { }
+ public void OnPostLoad(PostLoadEvent @event) { }
}
- [EventListener(SkipEvent = new[] {typeof (ILoadEventListener)})]
+ [EventListener(SkipEvent = new[] { typeof(ILoadEventListener) })]
private class MultipleSkippedReplacementListener : ILoadEventListener, IDeleteEventListener
{
- public void OnLoad(LoadEvent @event, LoadType loadType){}
- public void OnDelete(DeleteEvent @event){}
- public void OnDelete(DeleteEvent @event, ISet transientEntities){}
+ public void OnLoad(LoadEvent @event, LoadType loadType) { }
+ public void OnDelete(DeleteEvent @event) { }
+ public void OnDelete(DeleteEvent @event, ISet