开发者

Naming Practice for domain object named class

开发者_Python百科I'm using a ORM and ran across a database table named Class. I've been naming the domain objects the same as their table name. So is Class a valid name for this object? I know it will compile but it doesn't seem like a good practice.

The table is refering to a versioned C# class.


Its not good practice, and personally I would not do it, it compiles because in c# class != Class (its case sensitive)

class and all variations of class should be considered reserved words.


It'll compile, but personally I'd choose a different name to avoid any potential issues or confusion. Assuming you are talking about classes in the domain of education, maybe "Course" would be a good substitute?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜