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
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
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
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
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
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/
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
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
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
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
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
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
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
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 :
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
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
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
17 matches
Mail list logo