Hi,
I've searched a bit but haven't turned up anything, so here goes: are
there any disallowed/restricted property names on the mapped entities?
For example, I have a class that has a property named "End" of type
"DateTime" and another one named "Start".
The unit test exporting the schema ( new
S
lid to turn off lazy loading of a class, but leave lazy loading
> for one of its collections on. This would allow you to avoid:
> a) having to make all your members virtual,
> b) pulling half the database down from a single entity load :)
>
> On Sat, Feb 27, 2010 at 12:01 AM, adrian
Hi,
A short question about lazy loading. Until today I had thought that
settings this.Not.LazyLoad() on a class mapping would effectively
disable lazy loading on its associations (HasMany() mappings). However
it doesn't seem to be the case, I have to also call
HasMany(...).Not.LazyLoad().
Is this
ead of a copy of the list? That way the
> signature rather than the name of the property indicates the kind of actions
> they can take on it.
>
> On Thu, Feb 18, 2010 at 8:52 AM, adrianhara wrote:
>
> > Hi guys,
>
> > Is it possible to map this?
>
> >
Hi guys,
Is it possible to map this?
class Foo
{
private IList bars;
public IList BarsCopy
{
get { return bars.ToList();}
}
public void AddBar(Bar newBar)
{
bars.Add(newBar);
}
public void RemoveBar(Bar bar)
{
bars.Remove(bar);
}
arent);
}
else
{
return repository.Save(parent);
}
}
Which is kind of "sub-optimal" :). So if you know a better way, please
share...
On Feb 17, 6:50 pm, adrianhara wrote:
> Hi,
>
> I can't figure out ho
Hi,
I can't figure out how to get rid of the following behavior:
I have an entity, say Parent, which has an signle assigned identifier
(so that there'll always be one single record in the corresponding
database table) and a collection (IList<>) of Child entities. Parent
is mapped with "HasMany(x
Hi,
Is it possible, using fluentNH (or NH), to map this:
public class ParentEntity : EntityBase
{
private IDictionary> children;
}
The EntityBase class defines and Id and stuff, it's the dictionary
mapping that I don't know how to do...
Thanks,
Adrian
--
You received this