As an entity class, I want to add an attributes at run-time, how should I do?
I would go with PostSharp, a very elegant AOP framework (or Policy Injection).
PostSharp allows you to inject custom attributes. The blog entry refered to in the post has some code you can download to achieve your goal.