I am not very experienced with NHibernate, but shouldn't you
put .LazyLoad() on the HasMany?
On 10 sep., 18:36, Roy Jacobs wrote:
> Hi,
>
> if I have a map like so:
>
> public class ClientMap: ClassMap
> {
> public ClientMap()
> {
> LazyLoad();
> Table("Clients");
>
Thx for the reply,
finally got it working with config below.
1. Downloaded the build #fluentnhibernate-binary-1.0.0.593
2. Re-create the project
3. Changed the
.ProxyFactoryFactory
("NHibernate.ByteCode.LinFu.ProxyFactoryFactory,NHibernate.ByteCode.LinFu"))
TO
.ProxyFactoryFactory("NHibernate.Byt
I need to do very simple proof of concept sample project using Fluent
NHibernate using Oracle database.
There is requirement to use an existing component used to manage
encrypted db config details, which can provide me with Oracle Provider
format connection string.
For the purpose of my proof of
Good idea. I'll give it a try and report back.
On Sep 8, 9:50 pm, Paul Batum wrote:
> Hi Kevin,
>
> Have you tried something like this:
>
> public class BaseMap : IAutoMappingOverride where T : EntityBase
> {
> public void Override(AutoMap mapping)
> {
> // Ma
Was this item resolved or added as an issue (ticket)? I have the same
problem. I would like to set the defaultaccess universally using a
convention.
On Aug 17, 12:51 am, James Gregory wrote:
> I'm already on it :)
>
> On Mon, Aug 17, 2009 at 6:50 AM, Steven Burman wrote:
>
>
>
>
>
> > Should t
Just wanted to thank the FNH Team for all its hard work and the
excellent resulting project. Here's to 1.0 and onward!
I just moved from r538 to 1.0... took me a while to rename some stuff
and redo my conventions, but it's great nonetheless. The new
ManyToManyTableNameConvention and ForeignKeyCon
Thanks for the reply.
I did have to resort to hbm mapping for all classes that need idbag. I
was really hoping that I simply overlooked the correct method, so I
can keep using fluent and automapping.
Is there any particular reason why idbag is not implemented, is it
totally different from list an
I have an Entities.Order class which has 2 joinedSubclass
Entities.Purchase, and Entities.Sale derived from it.
The IAutoMappingOverride of these 3 classes are contained in a single
file
The structure of the file is like this:
Public Class OrderOverride
Implements IAutoMappingOverride(Of Enti
Do you need to specify the ProxyFactory in the configuration? Based
on the error you were receiving, it looks like it is searching for the
Castle ProxyFactory by default, but I explicitly declare in my Fluent
Config code. See the ProxyFactoryFactory method call below.
return Flu
Hi,
if I have a map like so:
public class ClientMap: ClassMap
{
public ClientMap()
{
LazyLoad();
Table("Clients");
Id(x => x.ID)
.Column("ClientID")
.GeneratedBy.Identity();
HasMany(x => x.Seats)
.Cascade.AllDeleteOrphan()
.KeyC
can you do those in transaction(with flushmode=>commit), or set flush mode
to none and when you want to send it, flush manually?
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Thu, Sep 10, 2009 at 1
Currently it is really slow using:
public void Save(ISagaEntity saga)
{
SessionFactory.GetCurrentSession().Save(saga);
}
I did however try with reading from the queue adding to a list
and then looping through that with a StatelessSession and a transaction
doing Session.Insert(entity). It did
I've used something like
public class SmartEnumMapping : IUserType
{
#region IUserType Members
public object Assemble(object cached, object owner)
{
return cached;
}
public object DeepCopy(object value)
{
return value;
and the code where you save?
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Thu, Sep 10, 2009 at 10:47 AM, Mikael Henriksson wrote:
> Sure thing I'll start with the *entity:*
> public class SagaEn
Sure thing I'll start with the *entity:*
public class SagaEntity : ISagaEntity
{
public virtual Guid Id { get; set; }
public virtual Guid CorrelationId { get; set; }
}
*Mapping:*
public class SagaEntityMap : ClassMap
{
public SagaEntityMap()
{
Table("saga");
Id(x =>
I saw that in build 539 there is the Index method... Sorry for this
On 10 sep., 17:39, DaeMoohn wrote:
> Hi,
>
> I wonder how can I manually specify indexes for columns using Fluent
> NHibernate (not using automapping). Also, if I have something like
>
> References(x => x.Convention)
>
Hi,
I wonder how can I manually specify indexes for columns using Fluent
NHibernate (not using automapping). Also, if I have something like
References(x => x.Convention)
.PropertyRef("ConventionID")
.Column("idconv");
does that mean that in my current table, idco
Can you show a piece of code?
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Thu, Sep 10, 2009 at 9:51 AM, Mikael Henriksson wrote:
> Id strategy is set to Assigned since I am using guid for id an
Id strategy is set to Assigned since I am using guid for id and I need to
assign it before it hits the database because it is queued before handled by
nhibernate.
On Thu, Sep 10, 2009 at 3:43 PM, Tuna Toksoz wrote:
> What is your id strategy?
>
> Tuna Toksöz
> Eternal sunshine of the open source
What is your id strategy?
Tuna Toksöz
Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike
On Thu, Sep 10, 2009 at 9:11 AM, Mikael Henriksson wrote:
> Is something wrong with the AdoNetBatchSize?
> I can't get it to w
Check out the WIKI for how to export your maps.
http://wiki.fluentnhibernate.org/Fluent_configuration#Exporting_mappings
On Sep 10, 8:11 am, Mikael Henriksson wrote:
> Is something wrong with the AdoNetBatchSize?
> I can't get it to work. I would expect to get 100 inserts at a time if I
> speci
I guess that the above is not a great example. Obviously as it stands
right now, CommonField1 should be moved into the BaseDomain class.
This was done just as an example, however in our case we have a third
class that does not need the CommonField1, so we would prefer to keep
it out of the BaseDo
Is something wrong with the AdoNetBatchSize?
I can't get it to work. I would expect to get 100 inserts at a time if I
specify batch size 100 but nothing is happening.
Can I dump the xml configuration for nhibernate to disk? I know the entities
are dumpable but what about the nh config...
--~--~---
23 matches
Mail list logo