Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
column mapping using attributes?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rob Segerink  
View profile  
 More options Apr 26 2012, 4:22 pm
From: Rob Segerink <rseger...@gmail.com>
Date: Thu, 26 Apr 2012 13:22:28 -0700 (PDT)
Local: Thurs, Apr 26 2012 4:22 pm
Subject: column mapping using attributes?

Hi,

just looking at simple.data for a new project, in this project we have a
existing database with very nasty/unreadable column names,
I would like to have my POCO's using nice property names, so how can I map
these two? Can I do something like:

[DbColumnName = "unreadablecolumn"]
string FirstName { get; set;}

thanks,

Rob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Rendle  
View profile  
 More options Apr 26 2012, 6:25 pm
From: Mark Rendle <m...@markrendle.net>
Date: Thu, 26 Apr 2012 23:25:48 +0100
Local: Thurs, Apr 26 2012 6:25 pm
Subject: Re: column mapping using attributes?
I've got an idea for doing something about this, but it won't be
attributes on property names. That would mean you were putting bits of
Simple.Data in your business objects or POCOs, and I don't like that
sort of thing.

What I'm thinking of is an abstract generic type you can derive from
which will have From and To methods; you can hook these up using MEF
attributes and they'll take care of the mapping for you without
polluting your application logic or objects.

I'll reply to this thread again when there's something on GitHub.

Mark

Sent from my iPad (until Win8 gets a mail app)

On 26 Apr 2012, at 21:22, Rob Segerink <rseger...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Maharry  
View profile  
 More options Apr 27 2012, 3:19 am
From: Dan Maharry <dan.maha...@gmail.com>
Date: Fri, 27 Apr 2012 08:19:58 +0100
Local: Fri, Apr 27 2012 3:19 am
Subject: RE: column mapping using attributes?
Is this going to be in a v1.x release Mark?

---

Dan Maharry

web: http://www.hmobius.com
blog: http://blog.hmobius.com
twitter: http://www.twitter.com/hmobius


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Rendle  
View profile  
 More options Apr 27 2012, 3:37 am
From: Mark Rendle <m...@markrendle.net>
Date: Fri, 27 Apr 2012 08:37:26 +0100
Local: Fri, Apr 27 2012 3:37 am
Subject: RE: column mapping using attributes?

Yes, I might start a 1.1 -pre release cycle soon.
On Apr 27, 2012 8:19 AM, "Dan Maharry" <dan.maha...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Segerink  
View profile  
 More options Apr 27 2012, 6:04 am
From: Rob Segerink <rseger...@gmail.com>
Date: Fri, 27 Apr 2012 03:04:33 -0700 (PDT)
Local: Fri, Apr 27 2012 6:04 am
Subject: Re: column mapping using attributes?

Thanks Marc,

can't wait to try it out! :)

greetings,

Rob

Op vrijdag 27 april 2012 09:37:26 UTC+2 schreef Mark Rendle het volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Palmer  
View profile  
 More options Oct 18 2012, 9:00 pm
From: Nathan Palmer <snowpal...@gmail.com>
Date: Thu, 18 Oct 2012 18:00:07 -0700 (PDT)
Local: Thurs, Oct 18 2012 9:00 pm
Subject: Re: column mapping using attributes?

Did this ever happen? I couldn't find any information about it in the docs.

Nathan Palmer


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »