Hello Everyone, I ran into a minor problem when using the FetchEntityUsingUniqueConstraint method of the DataProvider. I've read through the majority of the forum posts and i have not seen anyone post about this (nor did i find anything in the help document).
When i use FetchEntityUsingUniqueConstraint and a row that matches the constraint is found in the DataBase everything works fine. However if a row is not found that matches the constraint i get a "new" Entity (.IsNew = true), but when i attempt to use it in code i get an entity out of sync exception.
Is there something i need to do in order to use the "New" entity (it does not exist in the database and i do not want to save it immediately, only when the user clicks a save button). My work around for this has simply been to check ".IsNew", if it is true then i simply reinstantiate the entity.
Any insight would be great, i've got the solution working but i'd really like to know if there is something else i should be doing.
Thanks!