Questions tagged [pascalcasing]

Pascal case is a language-independent naming convention in which each word of an identifier name begins with a capital letter, such as CustomerName, CustomerId, etc.

In Pascal case, there is no indicator of the data type of the identifier. The name will be descriptive only, and not indicate types.

Examples of Pascal case: CustomerName, CustomerId, PostalCode, PrintInvoice

See also

61 questions
1
vote
1 answer

Code analysis, Lost between CA1709 and CA1704

Because of these two KB articles, I am confused: CA1704: Identifiers should be spelled correctly CA1709: Identifiers should be cased correctly I have a property named ICD9. My code analysis says that I have to change it to Icd That sounds…
Rami Alshareef
  • 7,015
  • 12
  • 47
  • 75
1
vote
2 answers

Force automatic linq to sql classes to have pascal case properties?

My SQL database has column names in camel case. I'm using Linq to SQL with C#. Is there a way to force auto-generation of properties to be in pascal case? The camel case properties do not conform to the C# standards, and it's a pain to do it…
0
votes
2 answers

Pascal Case in C# properties

Which one do you choose and why: public class User { public long UserID { get; set; } } public class User { public long UserId { get; set; } } And also as parameters: public void DoSomething(long userId) { } public void DoSomething(long…
Cheng Chen
  • 42,509
  • 16
  • 113
  • 174
0
votes
1 answer

How to read camelCase JSON request from http body?

I have following API endpoint public class CreateSupplierCommand { public string Name { get; set; } = null!; public string? Website { get; set; } } [ApiController] public class SuppliersController : ControllerBase { // ... …
Muflix
  • 6,192
  • 17
  • 77
  • 153
0
votes
0 answers

How can I name Classes using Snake Casing?

While coding in Java, I prefer to use pascal case for my class names and camel case for objects. For example: TextView textView1, textView2; But in C++, I prefer to use snake casing to name my variables. How can I do this for class names and object…
0
votes
0 answers

PascalCase React Snippet in VS Code

I am using the "ES7+ React/Redux/React-Native snippets" extension VS Code. I like to use rfc to generate a React functional component based on the name of the file. The issue is I want to use Next.js / next router to handle my pages. I want the…
0
votes
0 answers

What is the name of the case that uses dot separators

There are: camelCase UpperCamelCase (aka PascalCase) snake_case kebab-case but is there an official name for this case.with.dots?
Jean Bob
  • 565
  • 10
  • 24
0
votes
1 answer

PascalCase to camelCase, Finding and replacing in an angular proj

So, I was just wondering if there is a software or a program that identifies PascalCase and then covert it to camelCase? Or at least just identify/find the PascalCase so that I could do it myself manually. I am currently picking the cases manually…
0
votes
1 answer

Change the values in a column from PascalCase to snake_case using SQL

I have a table in snowflake that looks like this: -------------------- | fieldname | -------------------- |thisIsTestOne | |thisIsTestTwo | |this_test | -------------------- I need to convert the PascalCase values…
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
0
votes
1 answer

TypeScript: Strange behaviour when switching between PascalCase and camelCase

I am refactoring a C# desktop application to an Angular/TypeScript web application. All class properties inside the C# application use PascalCase, so I thought, it would be a good idea to just keep that. Here are 2 examples of basically the same…
Michael
  • 938
  • 1
  • 10
  • 34
0
votes
1 answer

Overriding SignalR Contract Resolver in ASP.NET Boilerplate

I'm having an issue where methods called in a signal R hub are returning camel cased. I see in the boilerplate documentation there is a section in signalR on how to override the default…
Francisco Garcia
  • 974
  • 1
  • 15
  • 26
0
votes
1 answer

PascalCase in asp.net core for only one version of the API

I'm currently developing a web API in asp.net core 1.0+. The API is using versionning, so I have a version 1 and a version 2, where the first version is to support an old android application. The problem is that I want to return the json of version…
0
votes
2 answers

Having trouble splitting a PascalCase string and storing it in an array in VB

CorrectHorseBatteryStaple to Correct Horse Battery Staple (Empty) There's also a catch, I can't use classes, functions, built-in functions other than Mid(), Right(), Left(), Len(), Asc(). Which makes the whole thing much more difficult. I can't…
Nick
  • 39
  • 1
  • 8
0
votes
1 answer

Entity framework: Best practice for case (as in pascal-case) in database tables/columns

In C# I always use PascalCase for properties (best practice, right?), for databases i always use lowercase for tables and columnnames (best practice, right?) When I generate classes from tables using entity framework, i get lowercase property names…
0
votes
0 answers

PHP XML how to set nodes and attributes to pascal casing

I need to create a XML File with Pasca Casing style in PHP but when I create for example the attribute: CustomerType at the moment to save the xml the output string convert the CustomerType to customertype. $dom = new DOMDocument('1.0',…