Field attribute case sensitivity

5 views
Skip to first unread message

Jamie Ide

unread,
Feb 17, 2009, 2:00:21 PM2/17/09
to wilsonormapper
I've had some ongoing weirdness persisting object graphs that I
finally discovered was due to string comparisons of database field
names. We had some mapping files that used inconsistent case values
for fields, e.g. PROJECTID vs. ProjectId. After I knew what to search
for, I found that someone else had discovered this:
http://www.ormapper.net/Forums/Default.aspx?part=74&action=thread&id=508&key=hKyUlO2ip%2fhY76B9W7C9hA%3d%3d

Rather than changing many of our mapping files and relying on us to be
consistent going forward, I altered WORM to force upper case for table
and field names. I made changes in the ctors of AttributeMap,
EntityMap, and RelationMap. I can upload a patch if there's anyone
still using this tool.

Brian DeMarzo

unread,
Mar 17, 2009, 2:08:49 PM3/17/09
to wilsonormapper
Jamie -- email me the patch (bdem...@gmail.com) and I'll apply it.



On Feb 17, 3:00 pm, Jamie Ide <jamie....@gmail.com> wrote:
> I've had some ongoing weirdness persisting object graphs that I
> finally discovered was due to string comparisons of database field
> names. We had some mapping files that used inconsistent case values
> for fields, e.g. PROJECTID vs. ProjectId. After I knew what to search
> for, I found that someone else had discovered this:http://www.ormapper.net/Forums/Default.aspx?part=74&action=thread&id=...
Reply all
Reply to author
Forward
0 new messages