Name user object and user table correctly

Posted by Marc on Programmers See other posts from Programmers or by Marc
Published on 2011-11-16T12:53:19Z Indexed on 2011/11/17 18:08 UTC
Read the original article Hit count: 278

Filed under:

It's maybe simple but I think about this every time I build a new application.

How do you name the class for the current user of the application and for the orm class of the user table?

Usually I have something like

  • CurrentUser: Logged-in user, stored in session, info for last activity etc
  • User: ORM Class (C# EF CodeFirst, but it doesn't matter)

And yes, they could have the same name in different namespaces, but I don't really like that.

© Programmers or respective owner

Related posts about untagged