DDatabase.entid returns DLong

entid should be returning a DLong rather than a DId