How about in the case were the base class is generic, say
EntityBase? Would FNH recognize it as a base class if I
used the open generic type (EntityBase<,>) in the predicate passed to
IsBaseType? On a related note, say the Id property is implemented as a
public readonly property on the base class
I imagine it did, I'm working on a definitive resource for examples,
so hopefully we won't have this problem soon.
On 1/30/09, Mark Roberts wrote:
>
> That seems to have worked. (I take it that this is a change that came
> after the numerous online examples...)
>
> Thanks!
>
>
>
> On Jan 30, 2:4
That seems to have worked. (I take it that this is a change that came
after the numerous online examples...)
Thanks!
On Jan 30, 2:43 pm, James Gregory wrote:
> You're trying to set a readonly property, use WithTable(...).
>
> On Fri, Jan 30, 2009 at 8:10 PM, Mark Roberts wrote:
>
> > In my f
You're trying to set a readonly property, use WithTable(...).
On Fri, Jan 30, 2009 at 8:10 PM, Mark Roberts wrote:
>
> In my first attempts to use FNH, and using some of the examples
> online, in my attempts to assign the TableName property, I get the
> error:
>
> Property or indexer
> 'FluentNH
Have you read this?
http://blog.jagregory.com/2009/01/26/fluent-nhibernate-auto-mapping-and-base-classes/
If so have you tried:
WithConvention(convention =>
{
convention.IsBaseType =
type = type == typeof(Entity) || type == typeof(User);
});
On Fri, Jan 30, 2009 at 7:02 PM, Romain Verdier
Hello there,
Using auto-mapping, how to ignore a base class that exists only in the
model, and that we don't want in the database?
The need is the same that for the typical base type all our entities
derive from, (that we specify using Conventions.IsBaseType property)
except that it only concern
Works like a charm. Again, thanks a lot.
On 30 jan, 13:39, Jan Van Ryswyck wrote:
> Thx, I'll try it later on.
>
> On Jan 29, 11:42 pm, James Gregory wrote:
>
> > Just committed a fix for this, let me know if you have any more problems.
>
> > On Wed, Jan 28, 2009 at 11:40 PM, Jan Van Ryswyck
>
In my first attempts to use FNH, and using some of the examples
online, in my attempts to assign the TableName property, I get the
error:
Property or indexer
'FluentNHibernate.Mapping.ClassMap.TableName' cannot be
assigned to -- it is read only
Clearly I did something wrong here, but I have no i
I'm scratching my head trying to figure out how to map this mess of a
hierarchy. This is a six-table hierarchy with parent, parent-to-child linking
table, and four child tables in a poorly attempted one-to-one mapping.
Parent
Id (int identity)
Link
Id (foreign key to Parent.Id)
ChildType (enum
I'm not sure if I was clear enough. I'm doing something like this:
var mappings = AutoPersistenceModel
.MapEntitiesFromAssemblyOf()
.Where(GetEntityFilter)
.WithConvention(GetConventions);
var sessionFactory = new Configuration()
.AddProperty(ConnectionString, ApplicationConnectionString)
.A
Hi
Is there any reason you can't configure the model then output the mapping,
personally I don't seem to be able to make it break before the configure is
called.
Andy
On Wed, Jan 28, 2009 at 11:35 PM, Jay Oliver wrote:
>
> That doesn't seem to be happening for me, but it'd be thrilling if
> the
Excellent, glad it worked out.
On Fri, Jan 30, 2009 at 12:46 PM, chris wrote:
>
> Thanks for your help James. I knew about the new syntax stuff and
> have a plan to move over to it already.
>
> And... I also read your blog post and managed to completely ignore
> it! that worked a treat.
>
> Be
Thanks for your help James. I knew about the new syntax stuff and
have a plan to move over to it already.
And... I also read your blog post and managed to completely ignore
it! that worked a treat.
Below is corrected code that works fine, just in case anyone is
interested.
DiscriminateS
Thanks for your help,i will make a try tonight,and post my response
here later on:)
Thanks again!
On Jan 30, 5:21 am, James Gregory wrote:
> Well, the Where statement is now mapped.
> If ObjType is in your class (and you are using the default column name) you
> can do this:
>
> HasMany(x => x.Co
Thx, I'll try it later on.
On Jan 29, 11:42 pm, James Gregory wrote:
> Just committed a fix for this, let me know if you have any more problems.
>
> On Wed, Jan 28, 2009 at 11:40 PM, Jan Van Ryswyck
> > wrote:
>
> > Wow, you're fast. Happy bug hunting and keep up the good work. :-)
>
> > On 29
Thanks James. That should do what I need! J
From: fluent-nhibernate@googlegroups.com
[mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory
Sent: quinta-feira, 29 de Janeiro de 2009 22:35
To: fluent-nhibernate@googlegroups.com
Subject: [fluent-nhib] Re: Need some explanations ab
No we didn't, thanks anyway though; the implementation we used allows you to
specify either of the option for NotFound.
On Fri, Jan 30, 2009 at 8:25 AM, Marco wrote:
>
> I submitted a patch some time ago for this..Did you use this patch?
>
> On 30 jan, 00:47, James Gregory wrote:
> > Just FYI,
I submitted a patch some time ago for this..Did you use this patch?
On 30 jan, 00:47, James Gregory wrote:
> Just FYI, this has been implemented now.
>
> On Wed, Dec 17, 2008 at 8:54 PM, Marco wrote:
>
> > I'm currently setting the 'not-found' attribute by using the
> > SetAtttribute method, bu
18 matches
Mail list logo