Linqpad And The Casing Of Class Names |
By Joseph Albahari, Ben Albahari
Price: $49.99 USD
£30.99 GBP
Cover | Table of Contents | Forum
![]() ![]() |
Linqpad And The Casing Of Class Names |
May 14 2008, 03:22 PM
Post
#1
|
|
|
New Member ![]() Group: Members Posts: 1 Joined: 14-May 08 Member No.: 290 |
Hello,
I've only recently discovered LINQPad but have already found it useful and shared it with colleagues. This is minor but I do wonder why the name of LINQ objects in LINQPad use Pascal case instead of retaining the case of the underlying table. For example, I have a table named cfgPaymentMethod, in Visual Studio a LINQ class called cgrPaymentMethods is created but in LINQPad the object is CfgPaymentMethods with the leading "C" capitalized. This makes any queries written in LINQPad less portable if I want to copy and paste them into my Visual Studio project. Is this a problem for anyone else? It would be nice if LINQPad allowed you to choose between Pascal case or "native" case. Regards, -Kevin- |
|
|
|
May 15 2008, 12:54 AM
Post
#2
|
|
|
Active Member ![]() ![]() Group: Members Posts: 36 Joined: 16-February 08 Member No.: 90 |
Hi Kevin
Glad you're enjoying LINQPad! You can control the capitalization of properties when you create or edit the connection. Right-click the connection on the left, choose 'Edit', and uncheck 'Capitalize Property Names'. Regards Joe |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th July 2008 - 06:21 AM |