As an entity class, I want to add an attributes at run-time, how should I do?
Use a hashtable to store your attributes.
If you want more runtime flexibility, you might try Ruby or some other interpreted language.