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
|
Just curious, I'm writing a small WPF app that I intend to use to configure Ligthspeed contexts and I'd love to add a "test connection" button - is it possible to "test connection" with Lightspeed? or should I look for something else?
Any hints will be greatly apreciated
Cheers Maciek |
|
|
No, there's nothing that will test the connection. The unit of work opens the connection on demand and there is no way to force it. The simplest options are probably: * Create a dummy unit of work, then make a dummy query (e.g. FindById) and check for an exception. * Use LightSpeedContext.DataProviderObjectFactory to create a connection, assign the appropriate connection string, and Open() it yourself (then Close it again of course). |
|
|
[quote user="mmisztal"] Any hints will be greatly apreciated [/quote] |
|