The problem is that Id must have a private setter. For now, you can remedy
this in one of two ways.
1) Derive your entities from Catnap.Entity (in which case you would remove
the Id property from your derived classes), or
2) Make your Id like this:
public int Id { get; private set; }
I might prefer the former because it gives you proper equality comparison,
which you would otherwise probably need to implement yourself.
The is a problem, and I need to fix it. I think maybe I can use the SetId
method instead of reflection. Since I am requiring that method I might as
well use it wherever possible. This might also allow me to make it
unnecessary to explicitly map Id for every entity.
In the mean time, I should at least mention it in the Introduction.
Thanks for the feedback!
Tim
IEntity.Id is no longer required to have a setter. Also, you no longer need
to map the Id property for any entity. If you do map it, then in must have
a setter (which can be non-public).
Tim
Thanks.
I have added some diagnostic logging. Any chance you could build the latest
and try it again? Prior to Domain.Configure you need to do this:
Log.Level = LogLevel.Debug;
This will cause it to output some messages to the console during the
configure process. If you send me the console output leading up to the
error, I could perhaps pinpoint the problem and be able to create a test
case that I could submit with a bug ticket.
I saw some posts on the MonoTouch list with this same error, and the Novel
guys said to submit a ticket because they can address such issues case by
case.
Thanks again!
Tim
Logger.LogFile = [path];
You think I should do that?
Tim
Hmm. I have added logging during Domain construction. Most of what happens
there is just assigning to private fields. There is one call to Where, but
that's about it for any Linq stuff. Give it a spin if you can.
Wanna send me the file logging code you wrote? I would like to add that
capability to the Log class.
Tim
That said, in this case I would be very happy if you just send it in an
email or paste it in the body of the issue.
Tim