public Connection GetConnection() { if (GetTableType() != BangDBTableType.NormalTable) { Common.BangDBLogger("error - the table type (BangDBTableType) is not NormalTable"); return null; } IntPtr _conn = BangDBNative.GetConnection(_table); Connection conn = new Connection(_conn); return conn; }