LocalDB, DB or OnlineDB object?

duplicate of Is there is a way in the platform to know if an object is LocalDB or OnlineDB?