C# 3.0 in a Nutshell
C# 3.0 in a Nutshell, Third Edition A Desktop Quick Reference

By Joseph Albahari, Ben Albahari
Price: $49.99 USD
£30.99 GBP

Cover | Table of Contents | Forum


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Linqpad And The Casing Of Class Names
Kevin Ravenhill
post 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-
Go to the top of the page
 
+Quote Post
Joseph Albahari
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 25th July 2008 - 06:21 AM