Comments (3)
I solved the problem. In MonoTouch you need to add the "Serializable" and "Preserve All Members" attributes before the class declarations, otherwise the compiler removes some properties metadata at compile time:
[Serializable]
[Preserve(AllMembers=true)]
public class MyVocabEntry
{
...
}
I suggest you to add this info to the documentation wiki, I wasted a lot of time on this. Now it works beautifully. Great library.
from sqlite-net.
Looks related to some recent changes having to do with column mappings. Could you include the property definition for MyVocabEntry.Word (including any attributes)? Perhaps that might shed some light on the issue.
from sqlite-net.
Ok, thanks. Here is the MyVocabEntry class:
public class MyVocabEntry
{
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
[Indexed]
public int EntryIndex { get; set; }
public string StemLemma { get; set; }
public string Etimology { get; set; }
[Indexed]
public string Word { get; set; }
public string PartOfSpeech { get; set; }
public string Morphology { get; set; }
public string Definitions { get; set; }
[Indexed]
public string Synonyms { get; set; }
[Indexed]
public string Antonyms { get; set; }
public override bool Equals (object obj)
{
if (obj is MyVocabEntry) {
return this.GetHashCode() == obj.GetHashCode();
} else {
return base.Equals(obj);
}
}
public override string ToString ()
{
return string.Format ("[MyVocabEntry]") + "," + EntryIndex + "," +Word + "," + StemLemma;
}
public override int GetHashCode ()
{
unchecked
{
int result = 37; // prime
result *= 397; // also prime
if (EntryIndex != 0)
result += EntryIndex.ToString().GetHashCode();
result *= 397;
if (Word != null)
result += Word.GetHashCode();
result *= 397;
if (StemLemma != null)
result += StemLemma.GetHashCode();
return result;
}
}
}
from sqlite-net.
Related Issues (20)
- Insert large data (over 2GB) occurs OverflowException, how to solve it?
- SQLite version and how to upgrade it HOT 1
- Query with Where() returns no results, fails only with UWP release build
- Support for ORDER BY CASE WHEN? HOT 1
- SQLiteAsyncConnection Support for REGEXP
- LINQ Where() Does Not Work Well With Enums Decorated With the StoreAsTextAttribute
- Problem with .NET MAUI Blazor SQL app
- Debug local iphone result in file is not a database HOT 1
- Android 10 release version results in file is not a database error HOT 1
- Cannot get SQL for: Subtract
- e_sqlite3.dll not included in single file output with Native AOT compilation HOT 2
- Exception: Library e_sqlite3 not found, is seen when application is run in x64 or AnyCPU.
- "Where" clause doesn't work with bool when record is migrated until the record is updated
- e_sqlite.dll is created but not showing an error when using it.
- Using sqlite-net-base with SQLitePCLRaw.provider.winsqlite3 HOT 2
- The UniqueAttribute is not used in the DDL
- Using versions that support standard .net in an old .NET 4.X project doesn't work
- ExecuteAsync and RunInTransactionAsync are not safe together. HOT 1
- Mixing Connection-Types? (async and sync connections on same database)
- DllNotFoundException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite-net.