Closed tranb3r closed 3 years ago
@praeclarum Could you please take a look at this regression before you release the final 1.8.0 ? Thanks !
Minimal reproduction sample:
var db = new SQLiteConnection(dbPath);
db.CreateTable<ClassB>();
var b = new ClassB();
db.Insert(b);
var test = db.CreateCommand("select * from ClassB")
.ExecuteDeferredQuery<object>(new TableMapping(typeof(ClassB))).ToList();
Thank you @tranb3r for this fix. This is an interesting one... the nullable design strikes again.
Thanks @inforithmics for the fix !!
There is an exception when using the new version sqlite-net-pcl 1.8.0-beta with SqliteNetExtensions
This issue has been introduced in 1.8.0-beta with PR https://github.com/praeclarum/sqlite-net/pull/902 (Fast Column Setters)
I've created a simple repro project, with 2 applications:
With sqlite-net-pcl 1.8.0-beta, there is an exception on both environments:
System.ArgumentException: method arguments are incompatible
System.ArgumentException: Cannot bind to the target method because its signature is not compatible with that of the delegate type
No error with 1.7.335.
The code for the test is in TestClass.cs in the shared lib (TestSqliteNet). It uses sqlite-net-pcl and SQLiteNetExtensions ; no need for sqlcipher nor async api.
TestSqliteNet.zip