[fluent-nhib] Re: AutoMapper Subclass mapping generating MissingMethodException

2009-09-08 Thread Rei
Can someone please help? --~--~-~--~~~---~--~~ 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-nhib] Re: AutoMapper Subclass mapping generating MissingMethodException

2009-09-04 Thread Rei
Ok, found a way for it not to throw an exception: public class ClientOverride : IAutoMappingOverride { public void Override(AutoMapping mapping) { mapping.SubClass("1", e => { }); mapping.SubClass("2", e => { }); } } For the discriminator column n

[fluent-nhib] Re: AutoMapper Subclass mapping generating MissingMethodException

2009-09-04 Thread Rei
Btw, I've also taken a look at previous posts the only close document I can find was: http://wiki.fluentnhibernate.org/Auto_mapping#Inheritance but the doc ends at: Subclassing FAQs with nothing about the discriminator part :( --~--~-~--~~~---~--~~ You received t

[fluent-nhib] AutoMapper Subclass mapping generating MissingMethodException

2009-09-04 Thread Rei
Hello all, Here it goes, I'm using the revision "631". I've done an IncludeBase for an abstract type so my class hierarchy ends up like this: public abstract class ClientBase { props } public class Sender : ClientBase { extra props } public class Receiver : ClientBase { no props } When tryin

[fluent-nhib] Re: Wont save or delete when working with database.

2009-06-30 Thread Rei
Probably you are forgetting about transactions? On Jun 29, 7:46 pm, Topflysecurity wrote: > hi. i got this problem i cant figure out and cant find any info about > it when i google. i cant save or delete anything from the database. > Get works. > > anybody got any idea what it might be? i can po

[fluent-nhib] Re: Schema Generation Created/Modified Dates

2009-05-22 Thread Rei
Even though you stated at the start that you wanted these values to be generated by the database, wouldnt it make sense to initialize/update these fields from within a save/update event from nHibernate? Here is an example of what i'm refering to: http://nhforge.org/blogs/nhibernate/archive/2009/

[fluent-nhib] Re: Mapping based on Join? Read only entities?

2009-05-20 Thread Rei
Could you please explain in more detail what it is that you want to do? On May 20, 11:03 pm, Brett Veenstra wrote: > I'm trying to produce a read-only view of several of my entities. > > For example, a "Part" sits in a "Part" table (Read/Write), but a > "ProducedPart" is a Part that has rows in

[fluent-nhib] Re: Schema Generation Created/Modified Dates

2009-05-18 Thread Rei
What he wants to do has nothing to do with fluent-nhibernate. What he wants is use (in the case of mssql GetDate()) to specify the column value, but i'm afraid you are out of luck on that one. On May 18, 10:47 pm, depaulo wrote: > You might be looking for nhibernate interceptors. If you do a bit

[fluent-nhib] Re: Paranoid question - Fluent is not a fork is it?

2009-05-15 Thread Rei
Your forgot to add - A very "sexy" completly independent project! On May 15, 7:03 pm, James Gregory wrote: > It most definitely is not a fork :) > It's a completely independent project that utilises NHibernate, but is no > way tied to its code-base (any more than any other user of NH is). > > On

[fluent-nhib] Re: HasMany or collection mapping again

2009-05-15 Thread Rei
Wasn't it easier to just HasMany(p => p.WhatEver).Access.AsField ? Or did I totally fubar the interpretation of the problem? On May 15, 12:53 am, cyberhubert wrote: > Hi nHibernate Heroes ;) > I have to ask you about it since I think/google about it for some time > and still have no consistent a

[fluent-nhib] Re: Repository and Linq removed

2009-05-13 Thread Rei
Much appreciated :) On May 13, 3:28 pm, James Gregory wrote: > Everyone, > Just a heads up, our repository implementation and dependency on > NHibernate.Linq have been removed. These were under developed areas of FNH > and probably doing more harm than good. I don't actually think anyone was > u

[fluent-nhib] Re: Dependencies

2009-05-12 Thread Rei
James, is there are need for the reference to the nh linq assembly? I think it would be a better idea to strip out the repository implementation/interface, (separation of concerns thingy ^^). On May 11, 10:56 am, James Gregory wrote: > That list looks correct. Our only dependency is NHibernate a

[fluent-nhib] Re: Map a Strategy Pattern using Fluent NHibernate

2009-05-04 Thread Rei Roldan
Map a constructor parameter ? Don't think that would be possible, instead create a property on Employee of type IPaymentBehaviour and create a subclass/joined-subclass (which ever makes sense). -Mensaje original- De: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegrou

[fluent-nhib] Re: Adding .CustomTypeIs(typeof(int)) cause extra update statements

2009-04-27 Thread Rei
Or change the access strategy to field. Ending as: private int _something; public virtual ZeeEnum Something { get { return (ZeeEnum)_something; } set { _something = (int)value; } } On Apr 25, 10:53 pm, Roelof Blom wrote: > I use the following convention: > >     public class EnumConvention :

[fluent-nhib] Re: conventions & overrides

2009-04-17 Thread Rei
Its not ment to check the order in which conventions have been applied, but since overrides, I believe, are applied before the convention (maybe i'm wrong) then this should work. Martin Hornagold, The fact that Email fields have a specific string length is a convention in its own right and sho

[fluent-nhib] Re: conventions & overrides

2009-04-16 Thread Rei
Can you check if the "length" attribute has been set with the HasAttribute method of the IProperty in the Accept method and only return true if it has not been set? Something like public bool Accept(IProperty property) { return property.HasAttribute("length"); } On Apr 16, 5:21 pm, Berryl H

[fluent-nhib] Re: conventions & overrides

2009-04-16 Thread Rei
Would this help: public bool Accept(IProperty property) { return !property.HasAttribute("length"); } So the convention will only be applied if the length attribute was not previously set. /Rei On Apr 16, 6:09 pm, Berryl Hesh wrote: > I think I like it better having one c