I'm resending this as it seems it has been missed. As usual, gzipped
patch attached.


ToNetCase() in NameFormatter used to wholly uppercase name
parts with only two characters (e.g. IN, BY) with no apparent
reason, given that ToPascalCase() already contains an exception for
"ID".

For instance, "users_in_role" will become "UsersINRole"...

This patch just call ToPascalCase() (which should be really named just
"Capitalize") without any further magic.


---
 src/DbLinq/Schema/Implementation/NameFormatter.cs |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/DbLinq/Schema/Implementation/NameFormatter.cs
b/src/DbLinq/Schema/Implementation/NameFormatter.cs
index 6933f8c..9424d1e 100644
--- a/src/DbLinq/Schema/Implementation/NameFormatter.cs
+++ b/src/DbLinq/Schema/Implementation/NameFormatter.cs
@@ -171,11 +171,7 @@ namespace DbLinq.Schema.Implementation
         /// <returns></returns>
         public string ToNetCase(string part)
         {
-            if (part.Length <= 2)
-                part = part.ToUpper();
-            else
-                part = ToPascalCase(part);
-            return part;
+            return ToPascalCase(part);
         }
 
         /// <summary>
-- 


-- 
Emanuele Aina
Studio Associato Di Nunzio e Di Gregorio
http://dndg.it/
Via Maria Vittoria, 2
10123 Torino - Italy

--

You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/dblinq?hl=.


Attachment: gzHw5H7NdkB0.gz
Description: GNU Zip compressed data

Reply via email to