igor-tkachev / bltoolkit

Business Logic Toolkit for .NET
MIT License
297 stars 113 forks source link

MemberMapper with ENumerable Types not working any more #360

Closed jogibear9988 closed 8 years ago

jogibear9988 commented 9 years ago

With your change in SqlValueBase in fc4fdf65b7c523361645cd6d521fc9d149f44fd4 a MemberMapper like this:

  MapField(x => x.AdditionalObjects).MapIgnore(false).MemberMapper(typeof(JsonNetSerialisationMapper)).DbType(System.Data.DbType.String).Nullable();

will not work any more, because my object is IEnumerable and you will Enumerate it!

Firebie commented 9 years ago

Try my fix from 363

jogibear9988 commented 9 years ago

i fixed it with https://github.com/jogibear9988/bltoolkit/commit/3ecf21764cde8bffa6b7511302fa4e938f20ce72

ili commented 9 years ago

Sorry for late response. I see.... this code is needed for #344... I think it can be moved to MappingSchema (like it is done for another convert). Please, can you provide the test for your case?