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 am getting started with LightSpeed and would like to use a custom IAuditInfoStrategy which stores user ids in the database for create, update and delete actions. However, our user ids are integer not string, but IAuditInfoStrategy requires string. I tried it anyway by creating the entity properties CreatedBy and so on as Int32, and returning a string that contains an integer, but get an ArgumentException stating that string cannot be converted to integer. Is there any way I can do this? |
|
|
No sorry, we specifically set these to be strings to allow whatever value you want to be encoded. Could you take an approach of having a wrapper property which parses out the value back to an Int32 where needed?
|
|
|
Okay, thanks, just wanted to make sure I'm not overlooking something. Then I'll find another way, no problem. |
|