This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have the following Entity: [Table(IdColumnName = "EVENT_REF")] public string AllowBookings And an entity that inherits from is as follows: [Discriminator(Attribute = "AllowBookings", Value = "Y")] However when I try to Find() Event or Course object. I receive a System.IndexOutOfRangeException: AllowBookings Any suggestions? |
|
|
Hi Ben, AllowBookings is an int? but your discriminator value is "Y" - maybe this is the problem? Cheers, Andrew.
|
|
|
Sorry, my initial posts was incorrectly written on first submit. I subsequently rewrote it afterwards, as you can see above. Thanks Ben |
|
|
Hi Ben, The issue is that currently the discrimator must be the column name. However, I've changed it so that you can use either the attribute name or the column name. Available from tonight's build. Cheers, Andrew. |
|
|
Thanks |
|