Esempio n. 1
0
 /// <summary>
 /// 实例化数据类型和数据源
 /// </summary>
 /// <param name="open">是否在实例的时候打开数据库</param>
 /// <param name="conStr">指定连接数据库的数据库连接字符串</param>
 public void InitData(bool open, string conStr)
 {
     _ssc = new SmOdbcClient(conStr);
     if (open)
     {
         _ssc.Open();
     }
 }
 /// <summary>
 /// ʵ�����������ͺ�����Դ
 /// </summary>
 /// <param name="open">�Ƿ���ʵ����ʱ������ݿ�</param>
 /// <param name="conStr">ָ���������ݿ�����ݿ������ַ���</param>
 public void InitData(bool open, string conStr)
 {
     _ssc = new SmOdbcClient(conStr);
     if (open) { _ssc.Open(); }
 }