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:
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:
> 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:
-----Original Message-----
From: simpledata@googlegroups.com [mailto:simpledata@googlegroups.com] On
Behalf Of Mark Rendle
Sent: 26 April 2012 23:26
To: simpledata@googlegroups.com
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:
> 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:
> -----Original Message-----
> From: simpledata@googlegroups.com [mailto:simpledata@googlegroups.com] On
> Behalf Of Mark Rendle
> Sent: 26 April 2012 23:26
> To: simpledata@googlegroups.com
> 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:
> > 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:
>> -----Original Message----- >> From: simpledata@googlegroups.com [mailto:simpledata@googlegroups.com] On >> Behalf Of Mark Rendle >> Sent: 26 April 2012 23:26 >> To: simpledata@googlegroups.com >> 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:
>> > 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:
On Thursday, April 26, 2012 6:25:48 PM UTC-4, Mark Rendle wrote:
> 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 <rseg...@gmail.com <javascript:>> > wrote:
> > 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: