Phil,
can't really speak to all possible cases, but the SessionID field in this
model is stored fine. it's from the MWC
app<https://github.com/xamarin/mobile-samples/tree/master/MWC>,
if you want to grab the SQLite-NET code from there and try it for version
diffs?
public abstract class BusinessEntityBase
public BusinessEntityBase () {}
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
}
public class Favorite : BusinessEntityBase
{
public Favorite () {}
* public int SessionID { get; set; }
* public string SessionKey { get; set; }
}
On Mon, Aug 27, 2012 at 5:40 PM, Phil Cockfield <[email protected]> wrote:
> Sorry, correction, I mean on properties (fields are not supported by the
> Indexed attribute).
>
> class Foo
> {
> [Indexed] public int Works { get; set; }
> public int NotWorking { get; set; }
>
> }
>
>
>
> On Mon, Aug 27, 2012 at 7:37 PM, Phil Cockfield <[email protected]>wrote:
>
>> I'm using Franks fork of
>> sqllite-net<https://github.com/praeclarum/sqlite-net>.
>> I'm noticing that int properties or fields are not being stored unless
>> they are decorated with the [*Indexed*] attribute.
>>
>>
>>
>> class Foo
>>
>>
>> {
>> [Indexed] public int Works;
>>
>> public int NotWorking;
>>
>> }
>>
>>
>> Does anyone know if that's by design ... or a bug?
>>
>>
>>
>> --
>> *Phil *Cockfield
>>
>>
>>
>>
>
>
> --
> *Phil *Cockfield
>
>
>
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch