Regards
>
> Christan Erhardt
>
> --
> 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
>
> On Wed, Mar 24, 2010 at 5:55 PM, James Crowley wrote:
>
>> Hi guys,
>>
>> Is there a way to disable the backtick field name escaping, and has this
>> behaviour changed at all recently?
>>
>> Fluent NHibernate is generating mappings like this:
>>
&
Hi guys,
Is there a way to disable the backtick field name escaping, and has this
behaviour changed at all recently?
Fluent NHibernate is generating mappings like this:
which seem to cause issues when using named queries in the trunk version of
nHibernate. If I export the fluen
t reveal much. Can you explain what the
>> difference is between delete-orphan and all-delete-orphan?
>>
>> Thanks,
>>
>> Paul Batum
>>
>> On Sat, Sep 5, 2009 at 3:57 AM, James Crowley
>> wrote:
>>>
>>> Just
Just added
public TParent DeleteOrphan()
{
setter("delete-orphan");
return parent;
}
to "Mapping/CollectionCascadeExpression.cs" and everything appears to
work great. Would someone mind adding it to the code base if they
agree?
Thanks
James
--~-
t;> 2.2 and this happens: [MappingException: Unsupported cascade style:
>> delete-orphans]"
>> (here:
>> http://stackoverflow.com/questions/444753/how-do-i-make-nhibernate-delete-child-refererences-when-i-delete-a-parent)
scade and didn't tell anyone but I'd have to check the NH source to
> find out.
>
> On Fri, Sep 4, 2009 at 10:05 AM, James Crowley wrote:
>>
>> Hmm, I'm even more confused now!
>>
>> Ayende makes reference to this way back in 2006:
>>
>> http:/
d in nhibernate it's
>> not going to be supported in Fluent either.
>>
>> On Fri, Sep 4, 2009 at 10:07 AM, James Crowley
>> wrote:
>>>
>>> Hi Mikael,
>>>
>>> thanks for the response. Unfortunately, that's the "all-delete-or
e this?
Many thanks,
James
2009/9/3 Mikael Henriksson :
> .I believe what you are looking for is Cascade.AllDeleteOrphan()
>
> On Thu, Sep 3, 2009 at 11:10 PM, James Crowley
> wrote:
>>
>> I'm probably missing something blindingly obvious here, but is there
>> a
I'm probably missing something blindingly obvious here, but is there
any reason why there is no delete-orphan option when setting the
cascade types?
Thanks
James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Flu
congrats James - great stuff!!
2009/8/29 James Gregory
> We've made it, Fluent NHibernate is now at 1.0.
> You can read the announcement over at
> NHForge<http://nhforge.org/blogs/nhibernate/archive/2009/08/29/fluent-nhibernate-1-0.aspx>
> .
>
> >
>
ion();
}
Honestly, I don't know the further implications of this, but it seems to
work fine for Enums anyway!
James
--
James Crowley
Managing Director
Developer Fusion - Connecting developers worldwide
Developer Fusion Ltd | 58 Sandringham Close | Enfield, EN1 3JH
mob: 07986 62412
ation over to Projects.
>
>
> On Mon, Jul 6, 2009 at 10:47 AM, James Crowley wrote:
>
>> Hi guys,
>> Is there any way to join on a column other than the primary key, using
>> WithTable (or any other command I've missed?).
>>
>> My mapping (for a read-onl
Hi guys,
Is there any way to join on a column other than the primary key, using
WithTable (or any other command I've missed?).
My mapping (for a read-only view) looks something like this:
WithTable("Releases");
Id(x => x.Id, "ReleaseId");
Map(x => x.ProjectId, "ProjectId");
WithTable("Project", t
FNH right now. It's a similar reason to why you can't create
>> a separate: ClassMap then a ClassMap,
>> ClassMap mappings. All inheritance mapping needs to be done
>> within one ClassMap (the base class one).
>> We're looking to change that, but it'll be a bit.
At the moment I'm using fluent mapping (rather than auto mapping) due to a
bunch of legacy tables in my schema.
However, I've now got a scenario where I need to map a bunch of classes in
an table-per-hierarchy inheritance (with a discriminator column) and ideally
I'd like to auto-map these.
Is th
Hey,
I've just come across the fact that there's no way to specify "property-ref"
on a HasMany relation (so I can point the one-to-many to a non-primary key
field on the parent entity), as described in this bug report:
http://code.google.com/p/fluent-nhibernate/issues/detail?id=207
Just wonderin
the type would do the trick. Are you interested in having a go at this
> yourself? Patches are always welcome :)
>
> Paul Batum
>
> On Thu, Mar 19, 2009 at 9:09 PM, James Crowley
> wrote:
> > *bump*
> >
> > anyone?
> >
> > Thanks,
> >
> >
ty easy to fix - an overload for AsElement() that also takes
> the type would do the trick. Are you interested in having a go at this
> yourself? Patches are always welcome :)
>
> Paul Batum
>
> On Thu, Mar 19, 2009 at 9:09 PM, James Crowley
> wrote:
*bump*
anyone?
Thanks,
2009/3/17 James Crowley
> Hi everyone,
>
> At the moment, I'm using the following:
>
> HasMany(t => t.StartingFor)
> .WithTableName("df_ContentType")
> .WithKeyColumn("WorkflowStageId")
&
Hi everyone,
At the moment, I'm using the following:
HasMany(t => t.StartingFor)
.WithTableName("df_ContentType")
.WithKeyColumn("WorkflowStageId")
.AsElement("Name");
To map a collection of enums to my entity, which works great when the enum
is st
Hey,
I'm getting a "An association from the table [ABC]
refers to an unmapped class" error when using an enum as part of a composite
key in an entity?
When doing
UseCompositeId()
.WithKeyReference(x => x.SomeOtherKey)
Map(x => x.Role, "RoleId"); /* Role is an Enum type */
This works just fi
22 matches
Mail list logo