SqlCeConnection is missing Open()
Status: Alpha
Brought to you by:
jonfroehlich
In SqlCeWrapper you are non opening and closing SqlCeConnection (in methods Open & Close).
public static void Open(string connectionString)
{
lock(_objLock)
{
if(_sqlCeConnection != null)
{
throw new InvalidOperationException("Connection already open.");
}
_sqlCeConnection = new SqlCeConnection(connectionString);
if(_sqlCeConnection != null)
{
_sqlCeConnection.Open();
}
}
}
public static void Close()
{
lock(_objLock)
{
if(_sqlCeConnection != null)
{
if(_sqlCeConnection.State != System.Data.ConnectionState.Open)
{
_sqlCeConnection.Close();
}
_sqlCeConnection.Dispose();
_sqlCeConnection = null;
}
}
}
Logged In: YES
user_id=1588190
Originator: NO
I'm afraid I'm still getting use to SourceForge and didn't notice this bug report until today. I will look at this sometime this week and either fix the bug or post a more thorough response.
Also, I attempted to hook up the Bug tracker to an e-mail address so that I am alerted on new bug report submissions.