此帖出自WindowsCE论坛
最新回复
public static string connectionStr
{
get { return "DataSource=" + WoodDirectory.GetCurPath() + @"\DataBase\Fuxing.sdf"; }
}
private static SqlCeConnection _objConn = null;
public static SqlCeConnection CreateConnection() //创建连接
{
if (_objConn == null)
{
_objConn = new SqlCeConnection("DataSource=" + WoodDirectory.GetCurPath() + @"\DataBase\Fuxing.sdf");
_objConn.Open();
}
else if (_objConn.State != System.Data.ConnectionState.Open)
{
_objConn.Open();
}
return _objConn;
}
详情
回复
发表于 2008-10-16 11:02
| ||
|
||
| |
|
|
| |
|
|
此帖出自WindowsCE论坛
| ||
|
||
| |
|
|
提示: 作者被禁止或删除 内容自动屏蔽
| |
|
|
| |
|
|
此帖出自WindowsCE论坛
| ||
|
||
EEWorld Datasheet 技术支持