supported attach closuer each entities.