Coder Social home page Coder Social logo

Comments (2)

emanuelpalm avatar emanuelpalm commented on September 25, 2024

I just tried to change the line and see if it fixed the problem, but since I'm on a Mac and Xamarin Studio doesn't seem to like the Lex.Db solution, I can't verify anything.

from lex.db.

demigor avatar demigor commented on September 25, 2024

Yes. This is the one …

From: Emanuel Palm [mailto:[email protected]]
Sent: Thursday, February 11, 2016 1:25 PM
To: demigor/lex.db [email protected]
Subject: [lex.db] ArgumentException when using 3 member index on iOS. (#40)

While running code equivalent to that below on iOS, an ArgumentException is thrown with the message:

method return type is incompatible

The code that causes the error is equivalent to the below pseudocode, with the exception being thrown as a response to the invocation of WithIndex. Using the WithIndex method with only two arguments work as expected.

var database = new DbInstance(path, "");
database
.Map()
.Automap(i => i.Key)
.WithIndex("some-index", i => i.Name, i => i.Color, i => i.Size);
database.Initialize();

While searching through the Lex.Db source code, I found the following line

var getter3 = member2.GetGetter<T, I3>();
of particular interest. It looks like a classical typo bug, with member2 being used to produce a value for getter3.


Reply to this email directly or view it on GitHub #40 . https://github.com/notifications/beacon/ACo4IWM-oycFJ5b6oItR3BmogCuVvTGCks5pjHUlgaJpZM4HYG4D.gif

from lex.db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.