下边是我封装的一个类的构造函数,根据isEmbed来判断是使用的哪种数据库版本:

public FireBirdDbHelper(bool isEmbed)
{
if(isEmbed)
_connectionString="Database=roy;User=SYSDBA;Password=masterkey;server type=1";
else
_connectionString= @"Database=D:\firebird\Firebird-1.5.2.4731_win32\examples\employee.fdb;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost";
_connection = new FbConnection(_connectionString);

}

相关文章:

  • 2022-01-05
  • 2021-10-20
  • 2021-12-10
  • 2021-11-04
  • 2021-09-25
  • 2021-05-30
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案