Note that there are some explanatory texts on larger screens.

plurals
  1. POReSharper complains about uppercase "ID" in member "EntityID"
    primarykey
    data
    text
    <p>I have a property "EntityID" in a class. Resharper (5.1) says </p> <blockquote> <p>Name 'EntityID' does not match rule 'Methods, properties and events'. Suggested name is 'EntityId'.</p> </blockquote> <p>But IMHO according to the naming conventions in the <a href="http://msdn.microsoft.com/en-us/library/czefa0ke%28VS.71%29.aspx" rel="noreferrer">Design Guidelines for Class Library Developers</a>. 'EntityID' should be perfectly fine:</p> <blockquote> <ul> <li>Do not use acronyms that are not generally accepted in the computing field.</li> <li>Where appropriate, use well-known acronyms to replace lengthy phrase names. For example, use UI for User Interface and OLAP for On-line Analytical Processing.</li> <li>When using acronyms, use Pascal case or camel case for acronyms more than two characters long. For example, use HtmlButton or htmlButton. However, you should capitalize acronyms that consist of only two characters, such as System.IO instead of System.Io.</li> <li>Do not use abbreviations in identifiers or parameter names. If you must use abbreviations, use camel case for abbreviations that consist of more than two characters, even if this contradicts the standard abbreviation of the word</li> </ul> </blockquote> <p><strong>*Update: *</strong> The latest version of the guidelines also say:</p> <blockquote> <p><em>Do capitalize both characters of two-character acronyms, except the first word of a camel-cased identifier.</em> A property named DBRate is an example of a short acronym (DB) used as the first word of a Pascal-cased identifier. A parameter named ioChannel is an example of a short acronym (IO) used as the first word of a camel-cased identifier.</p> </blockquote> <p>Am I understanding the guidelines correctly? If so, how can I make ReSharper accept "EntityID" (well known two letter acronym) but reject "HTMLReader" (it should be HtmlReader).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload