public int CloseTable(DBCloseType flag = DBCloseType.Default) { int r = BangDBNative.CloseThisTable(_table, (int)flag); BangDBNative.FreeHandle(ref _table); _table = IntPtr.Zero; return r; }
public int CloseTable(WideTable wtbl, DBCloseType flag = DBCloseType.Default) { IntPtr _tblhandle = wtbl.GetHandle(); int retval = BangDBNative.CloseWideTableHandle(_database, _tblhandle, (int)flag); _tblhandle = IntPtr.Zero; return(retval); }
public void CloseDatabase(DBCloseType flag = DBCloseType.Default) { if (_dbState) { BangDBNative.CloseDatabase(_database, (int)flag); } _dbState = false; _database = IntPtr.Zero; }
public int CloseTable(string tableName, DBCloseType flag = DBCloseType.Default) { int retval = BangDBNative.CloseTable(_database, tableName, (int)flag); return(retval); }