Skip to content

Support for ISet<T> with NHibernate 4.0 #288

@marcelobalexandre

Description

@marcelobalexandre

With NHibernate 4.0, instead of Iesi.Collections.Generic.ISet we can use System.Collections.Generic.ISet.

I'm trying to update to NHibernate 4.0, and now the PersistenceSpecifications tests are returning the following exception:

Test Name:  CanCorrectlyMapNFe
Test FullName:  TecBox.Tests.Mappings.Comercial.NotaFiscal.NFeTest.CanCorrectlyMapNFe
Test Source:    c:\src\git\bitbucket\iwti\tecbox\TecBox.Tests.Mappings\Comercial\NotaFiscal\NFeTest.cs : line 19
Test Outcome:   Failed
Test Duration:  0:00:00,266

Result Message: 
System.ApplicationException : Error while trying to set property XML

 ----> System.TypeLoadException : Could not load type 'Iesi.Collections.Generic.ISet`1' from assembly 'Iesi.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'.
Result StackTrace:  
at FluentNHibernate.Testing.Values.Property`2.SetValue(T target)
at FluentNHibernate.Testing.PersistenceSpecification`1.<>c__DisplayClass2.<VerifyTheMappings>b__0(Property`1 p)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at FluentNHibernate.Testing.PersistenceSpecification`1.VerifyTheMappings(T first)
at FluentNHibernate.Testing.PersistenceSpecification`1.VerifyTheMappings()
at TecBox.Tests.Mappings.Comercial.NotaFiscal.NFeTest.CanCorrectlyMapNFe() in c:\src\git\bitbucket\iwti\tecbox\TecBox.Tests.Mappings\Comercial\NotaFiscal\NFeTest.cs:line 33
--TypeLoadException
at FluentNHibernate.Testing.Values.List`2.<get_ValueSetter>b__2(T target, Accessor propertyAccessor, IEnumerable`1 value)
at FluentNHibernate.Testing.Values.Property`2.SetValue(T target)

This is an issue from FluentNHibernate or am I missing something?

I'm trying to find a solution but so far I have not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions