You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why I need to use writable list type (IList/List) in Point A (line 14) to avoid
LiteDB.LiteException: 'Failed to create instance for type 'System.Collections.Generic.IReadOnlyList1[[ConsoleApp.CustomerOrder, ConsoleApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' from assembly 'System.Collections.Generic.IReadOnlyList1[[ConsoleApp.CustomerOrder, ConsoleApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. Checks if the class has a public constructor with no parameters.'
that occurs in Point B (line 60)?
If it's trying to add CustomerOrder to list from Customer, then this behaviour is highly unwanted... especially for me :). If yes, then how to avoid that?
The text was updated successfully, but these errors were encountered:
@xandev Previously, our mapper only knew how to serialize properties of an interface type if the type was exactly IList, ICollection, IEnumerable, ISet or IDictionary. I fixed it and now it should work for any interface type that implements IEnumerable. This fix will be present in the next incremental release.
Hi, I'm new to LiteDB and I have a question about this chunk of code: https://pastebin.com/SCkQkYzz
Why I need to use writable list type (IList/List) in Point A (line 14) to avoid
that occurs in Point B (line 60)?
If it's trying to add CustomerOrder to list from Customer, then this behaviour is highly unwanted... especially for me :). If yes, then how to avoid that?
The text was updated successfully, but these errors were encountered: