[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Luis Abreu
Hello guys.

 

Just one thing regarding the version support and the baseclass inheritance
problem: does it work when you need to customize the mappings? Remember my
version + timestamp (sql server) problem? I had to give up on automapping
because  when I added the custom version  entry for each of my entities  the
sql generated would always use the base class Id name instead of the derive
class. Ex.: I had B which inherits form A and I wanted to generate mappings
for B. And yes, I did add the c.IsBaseType entry to my conventions while
defining the auto persistence model.

 

The problem was that since I was adding a mapping entry for B so that I
could set up the version to my custom type, it ended up using IdA for the
sql instead of IdB. I’ve ended up using manual mappings because of this
since I didn’t really had any more free time to play with it.

 

Luis

 

From: fluent-nhibernate@googlegroups.com
[mailto:fluent-nhibern...@googlegroups.com] On Behalf Of Andrew Stewart
Sent: terça-feira, 13 de Janeiro de 2009 09:14
To: fluent-nhibernate@googlegroups.com
Subject: [fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel
into S#arp Architecture

 

Doesn't look to hard to support though, quick recap:

 

- Pluralisation, although we don't support, I've successfully achieved this
using the below:

http://andrewpeters.net/inflectornet/

 

- Baseclass for inheritance can be set using the following convention:

 c.IsBaseType = b => b == typeof(BaseEntity);

 

- Anonymous Classes, I have an patch for this here, I'll get it applied to
the trunk.

 

If I get approved on there list I'll send this accross.

 

Andy

 

 

 

On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart
 wrote:

Same here

 

On Tue, Jan 13, 2009 at 9:03 AM, James Gregory 
wrote:

Awaiting approval :)

 

On Tue, Jan 13, 2009 at 3:52 AM,  wrote:


We have been using Fluent NHibernate within S#arp Architecture and
absolutely love it.  A few of us have taken a stab at integrating the
AutoPersistenceModel into the framework with varying success.

Would someone very familiar with AutoPersistenceModel be able to lend
us a hand?  The discussion concerning this is at
http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e
6dcb70def3a

Thank you for any help or insight that you might be able to provide!

Billy McCafferty









-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net




-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
lol
Yeah thats what I meant.

Andy

On Tue, Jan 13, 2009 at 9:28 AM, James Gregory wrote:

> So static classes, not anonymous classes? Anonymous classes being the new {
> Something = 1, Another = 3 } Linq thing.
>
>
> On Tue, Jan 13, 2009 at 9:25 AM, Andrew Stewart <
> andrew.stew...@i-nnovate.net> wrote:
>
>> Just here:
>>
>>
>>> Kyle Bailey jan 13, 2:52 am
>>
>> - Fluent NHibernate doesn't like static classes (e.g. OrdersExtensions)
>>> in the domain assembly.
>>
>>
>> Basically extension classes are a little weird in there implementation,
>> but I have a basic check which seems to do the job.
>>
>> Andy
>>
>> On Tue, Jan 13, 2009 at 9:22 AM, James Gregory 
>> wrote:
>>
>>> Where did they mention anonymous classes?
>>>
>>> On Tue, Jan 13, 2009 at 9:20 AM, Andrew Stewart <
>>> andrew.stew...@i-nnovate.net> wrote:
>>>
 Fix for anonymous classes is now in the trunk.
 Andy


 On Tue, Jan 13, 2009 at 9:14 AM, Andrew Stewart <
 andrew.stew...@i-nnovate.net> wrote:

> Doesn't look to hard to support though, quick recap:
> - Pluralisation, although we don't support, I've successfully achieved
> this using the below:
> http://andrewpeters.net/inflectornet/
>
> - Baseclass for inheritance can be set using the following convention:
>  c.IsBaseType = b => b == typeof(BaseEntity);
>
> - Anonymous Classes, I have an patch for this here, I'll get it applied
> to the trunk.
>
> If I get approved on there list I'll send this accross.
>
> Andy
>
>
>
>
>  On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart <
> andrew.stew...@i-nnovate.net> wrote:
>
>> Same here
>>
>>
>> On Tue, Jan 13, 2009 at 9:03 AM, James Gregory > gmail.com> wrote:
>>
>>> Awaiting approval :)
>>>
>>>
>>> On Tue, Jan 13, 2009 at 3:52 AM,  wrote:
>>>

 We have been using Fluent NHibernate within S#arp Architecture and
 absolutely love it.  A few of us have taken a stab at integrating
 the
 AutoPersistenceModel into the framework with varying success.

 Would someone very familiar with AutoPersistenceModel be able to
 lend
 us a hand?  The discussion concerning this is at

 http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a

 Thank you for any help or insight that you might be able to provide!

 Billy McCafferty


>>>
>>>
>>>
>>
>>
>> --
>> =
>> I-nnovate Software - Bespoke Software Development, uk wirral.
>> http://www.i-nnovate.net
>>
>
>
>
> --
> =
> I-nnovate Software - Bespoke Software Development, uk wirral.
> http://www.i-nnovate.net
>



 --
 =
 I-nnovate Software - Bespoke Software Development, uk wirral.
 http://www.i-nnovate.net



>>>
>>>
>>>
>>
>>
>> --
>> =
>> I-nnovate Software - Bespoke Software Development, uk wirral.
>> http://www.i-nnovate.net
>>
>>
>>
>
> >
>


-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread James Gregory
So static classes, not anonymous classes? Anonymous classes being the new {
Something = 1, Another = 3 } Linq thing.

On Tue, Jan 13, 2009 at 9:25 AM, Andrew Stewart <
andrew.stew...@i-nnovate.net> wrote:

> Just here:
>
>
>> Kyle Bailey jan 13, 2:52 am
>
> - Fluent NHibernate doesn't like static classes (e.g. OrdersExtensions)
>> in the domain assembly.
>
>
> Basically extension classes are a little weird in there implementation, but
> I have a basic check which seems to do the job.
>
> Andy
>
> On Tue, Jan 13, 2009 at 9:22 AM, James Gregory wrote:
>
>> Where did they mention anonymous classes?
>>
>> On Tue, Jan 13, 2009 at 9:20 AM, Andrew Stewart <
>> andrew.stew...@i-nnovate.net> wrote:
>>
>>> Fix for anonymous classes is now in the trunk.
>>> Andy
>>>
>>>
>>> On Tue, Jan 13, 2009 at 9:14 AM, Andrew Stewart <
>>> andrew.stew...@i-nnovate.net> wrote:
>>>
 Doesn't look to hard to support though, quick recap:
 - Pluralisation, although we don't support, I've successfully achieved
 this using the below:
 http://andrewpeters.net/inflectornet/

 - Baseclass for inheritance can be set using the following convention:
  c.IsBaseType = b => b == typeof(BaseEntity);

 - Anonymous Classes, I have an patch for this here, I'll get it applied
 to the trunk.

 If I get approved on there list I'll send this accross.

 Andy




  On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart <
 andrew.stew...@i-nnovate.net> wrote:

> Same here
>
>
> On Tue, Jan 13, 2009 at 9:03 AM, James Gregory  gmail.com> wrote:
>
>> Awaiting approval :)
>>
>>
>> On Tue, Jan 13, 2009 at 3:52 AM,  wrote:
>>
>>>
>>> We have been using Fluent NHibernate within S#arp Architecture and
>>> absolutely love it.  A few of us have taken a stab at integrating the
>>> AutoPersistenceModel into the framework with varying success.
>>>
>>> Would someone very familiar with AutoPersistenceModel be able to lend
>>> us a hand?  The discussion concerning this is at
>>>
>>> http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a
>>>
>>> Thank you for any help or insight that you might be able to provide!
>>>
>>> Billy McCafferty
>>>
>>>
>>
>>
>>
>
>
> --
> =
> I-nnovate Software - Bespoke Software Development, uk wirral.
> http://www.i-nnovate.net
>



 --
 =
 I-nnovate Software - Bespoke Software Development, uk wirral.
 http://www.i-nnovate.net

>>>
>>>
>>>
>>> --
>>> =
>>> I-nnovate Software - Bespoke Software Development, uk wirral.
>>> http://www.i-nnovate.net
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> =
> I-nnovate Software - Bespoke Software Development, uk wirral.
> http://www.i-nnovate.net
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
Just here:


> Kyle Bailey jan 13, 2:52 am

- Fluent NHibernate doesn't like static classes (e.g. OrdersExtensions)
> in the domain assembly.


Basically extension classes are a little weird in there implementation, but
I have a basic check which seems to do the job.

Andy

On Tue, Jan 13, 2009 at 9:22 AM, James Gregory wrote:

> Where did they mention anonymous classes?
>
> On Tue, Jan 13, 2009 at 9:20 AM, Andrew Stewart <
> andrew.stew...@i-nnovate.net> wrote:
>
>> Fix for anonymous classes is now in the trunk.
>> Andy
>>
>>
>> On Tue, Jan 13, 2009 at 9:14 AM, Andrew Stewart <
>> andrew.stew...@i-nnovate.net> wrote:
>>
>>> Doesn't look to hard to support though, quick recap:
>>> - Pluralisation, although we don't support, I've successfully achieved
>>> this using the below:
>>> http://andrewpeters.net/inflectornet/
>>>
>>> - Baseclass for inheritance can be set using the following convention:
>>>  c.IsBaseType = b => b == typeof(BaseEntity);
>>>
>>> - Anonymous Classes, I have an patch for this here, I'll get it applied
>>> to the trunk.
>>>
>>> If I get approved on there list I'll send this accross.
>>>
>>> Andy
>>>
>>>
>>>
>>>
>>> On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart <
>>> andrew.stew...@i-nnovate.net> wrote:
>>>
 Same here


 On Tue, Jan 13, 2009 at 9:03 AM, James Gregory >>> > wrote:

> Awaiting approval :)
>
>
> On Tue, Jan 13, 2009 at 3:52 AM,  wrote:
>
>>
>> We have been using Fluent NHibernate within S#arp Architecture and
>> absolutely love it.  A few of us have taken a stab at integrating the
>> AutoPersistenceModel into the framework with varying success.
>>
>> Would someone very familiar with AutoPersistenceModel be able to lend
>> us a hand?  The discussion concerning this is at
>>
>> http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a
>>
>> Thank you for any help or insight that you might be able to provide!
>>
>> Billy McCafferty
>>
>>
>
>
>


 --
 =
 I-nnovate Software - Bespoke Software Development, uk wirral.
 http://www.i-nnovate.net

>>>
>>>
>>>
>>> --
>>> =
>>> I-nnovate Software - Bespoke Software Development, uk wirral.
>>> http://www.i-nnovate.net
>>>
>>
>>
>>
>> --
>> =
>> I-nnovate Software - Bespoke Software Development, uk wirral.
>> http://www.i-nnovate.net
>>
>>
>>
>
> >
>


-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread James Gregory
Where did they mention anonymous classes?

On Tue, Jan 13, 2009 at 9:20 AM, Andrew Stewart <
andrew.stew...@i-nnovate.net> wrote:

> Fix for anonymous classes is now in the trunk.
> Andy
>
>
> On Tue, Jan 13, 2009 at 9:14 AM, Andrew Stewart <
> andrew.stew...@i-nnovate.net> wrote:
>
>> Doesn't look to hard to support though, quick recap:
>> - Pluralisation, although we don't support, I've successfully achieved
>> this using the below:
>> http://andrewpeters.net/inflectornet/
>>
>> - Baseclass for inheritance can be set using the following convention:
>>  c.IsBaseType = b => b == typeof(BaseEntity);
>>
>> - Anonymous Classes, I have an patch for this here, I'll get it applied to
>> the trunk.
>>
>> If I get approved on there list I'll send this accross.
>>
>> Andy
>>
>>
>>
>>
>> On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart <
>> andrew.stew...@i-nnovate.net> wrote:
>>
>>> Same here
>>>
>>>
>>> On Tue, Jan 13, 2009 at 9:03 AM, James Gregory 
>>> wrote:
>>>
 Awaiting approval :)


 On Tue, Jan 13, 2009 at 3:52 AM,  wrote:

>
> We have been using Fluent NHibernate within S#arp Architecture and
> absolutely love it.  A few of us have taken a stab at integrating the
> AutoPersistenceModel into the framework with varying success.
>
> Would someone very familiar with AutoPersistenceModel be able to lend
> us a hand?  The discussion concerning this is at
>
> http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a
>
> Thank you for any help or insight that you might be able to provide!
>
> Billy McCafferty
>
>



>>>
>>>
>>> --
>>> =
>>> I-nnovate Software - Bespoke Software Development, uk wirral.
>>> http://www.i-nnovate.net
>>>
>>
>>
>>
>> --
>> =
>> I-nnovate Software - Bespoke Software Development, uk wirral.
>> http://www.i-nnovate.net
>>
>
>
>
> --
> =
> I-nnovate Software - Bespoke Software Development, uk wirral.
> http://www.i-nnovate.net
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
Fix for anonymous classes is now in the trunk.
Andy

On Tue, Jan 13, 2009 at 9:14 AM, Andrew Stewart <
andrew.stew...@i-nnovate.net> wrote:

> Doesn't look to hard to support though, quick recap:
> - Pluralisation, although we don't support, I've successfully achieved this
> using the below:
> http://andrewpeters.net/inflectornet/
>
> - Baseclass for inheritance can be set using the following convention:
>  c.IsBaseType = b => b == typeof(BaseEntity);
>
> - Anonymous Classes, I have an patch for this here, I'll get it applied to
> the trunk.
>
> If I get approved on there list I'll send this accross.
>
> Andy
>
>
>
>
> On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart <
> andrew.stew...@i-nnovate.net> wrote:
>
>> Same here
>>
>>
>> On Tue, Jan 13, 2009 at 9:03 AM, James Gregory 
>> wrote:
>>
>>> Awaiting approval :)
>>>
>>>
>>> On Tue, Jan 13, 2009 at 3:52 AM,  wrote:
>>>

 We have been using Fluent NHibernate within S#arp Architecture and
 absolutely love it.  A few of us have taken a stab at integrating the
 AutoPersistenceModel into the framework with varying success.

 Would someone very familiar with AutoPersistenceModel be able to lend
 us a hand?  The discussion concerning this is at

 http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a

 Thank you for any help or insight that you might be able to provide!

 Billy McCafferty


>>>
>>> >>>
>>>
>>
>>
>> --
>> =
>> I-nnovate Software - Bespoke Software Development, uk wirral.
>> http://www.i-nnovate.net
>>
>
>
>
> --
> =
> I-nnovate Software - Bespoke Software Development, uk wirral.
> http://www.i-nnovate.net
>



-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
Doesn't look to hard to support though, quick recap:
- Pluralisation, although we don't support, I've successfully achieved this
using the below:
http://andrewpeters.net/inflectornet/

- Baseclass for inheritance can be set using the following convention:
 c.IsBaseType = b => b == typeof(BaseEntity);

- Anonymous Classes, I have an patch for this here, I'll get it applied to
the trunk.

If I get approved on there list I'll send this accross.

Andy




On Tue, Jan 13, 2009 at 9:06 AM, Andrew Stewart <
andrew.stew...@i-nnovate.net> wrote:

> Same here
>
>
> On Tue, Jan 13, 2009 at 9:03 AM, James Gregory wrote:
>
>> Awaiting approval :)
>>
>>
>> On Tue, Jan 13, 2009 at 3:52 AM,  wrote:
>>
>>>
>>> We have been using Fluent NHibernate within S#arp Architecture and
>>> absolutely love it.  A few of us have taken a stab at integrating the
>>> AutoPersistenceModel into the framework with varying success.
>>>
>>> Would someone very familiar with AutoPersistenceModel be able to lend
>>> us a hand?  The discussion concerning this is at
>>>
>>> http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a
>>>
>>> Thank you for any help or insight that you might be able to provide!
>>>
>>> Billy McCafferty
>>>
>>>
>>
>> >>
>>
>
>
> --
> =
> I-nnovate Software - Bespoke Software Development, uk wirral.
> http://www.i-nnovate.net
>



-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread Andrew Stewart
Same here

On Tue, Jan 13, 2009 at 9:03 AM, James Gregory wrote:

> Awaiting approval :)
>
>
> On Tue, Jan 13, 2009 at 3:52 AM,  wrote:
>
>>
>> We have been using Fluent NHibernate within S#arp Architecture and
>> absolutely love it.  A few of us have taken a stab at integrating the
>> AutoPersistenceModel into the framework with varying success.
>>
>> Would someone very familiar with AutoPersistenceModel be able to lend
>> us a hand?  The discussion concerning this is at
>>
>> http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a
>>
>> Thank you for any help or insight that you might be able to provide!
>>
>> Billy McCafferty
>>
>>
>
> >
>


-- 
=
I-nnovate Software - Bespoke Software Development, uk wirral.
http://www.i-nnovate.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---



[fluent-nhib] Re: Difficulty integrating into AutoPersistenceModel into S#arp Architecture

2009-01-13 Thread James Gregory
Awaiting approval :)

On Tue, Jan 13, 2009 at 3:52 AM,  wrote:

>
> We have been using Fluent NHibernate within S#arp Architecture and
> absolutely love it.  A few of us have taken a stab at integrating the
> AutoPersistenceModel into the framework with varying success.
>
> Would someone very familiar with AutoPersistenceModel be able to lend
> us a hand?  The discussion concerning this is at
>
> http://groups.google.com/group/sharp-architecture/browse_thread/thread/d528e6dcb70def3a
>
> Thank you for any help or insight that you might be able to provide!
>
> Billy McCafferty
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~--~~~~--~~--~--~---