public void InitAdapter(DbAdapter adapter) { dbadapter = adapter; if (adapter != null) { dbadapter.Init(connectionstring); } }