[fluent-nhib] Re: Lazy loading question

2009-09-10 Thread DaeMoohn
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"); >      

[fluent-nhib] Re: My first fluent nhibernate ..

2009-09-10 Thread johnson
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

[fluent-nhib] Oracle Configuration - advice required

2009-09-10 Thread Emil
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

[fluent-nhib] Re: Automapping overrides for ignored base classes

2009-09-10 Thread Kevin Dente
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

[fluent-nhib] Re: Default Access in RC1.0

2009-09-10 Thread Shawn
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

[fluent-nhib] Thank you!

2009-09-10 Thread ComradeF
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

[fluent-nhib] Re: Support for idbag

2009-09-10 Thread Tedy Pranolo
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

[fluent-nhib] Does the ordering of IAutoMappingOverride matters?

2009-09-10 Thread Tedy Pranolo
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

[fluent-nhib] Re: My first fluent nhibernate ..

2009-09-10 Thread imonthercks
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

[fluent-nhib] Lazy loading question

2009-09-10 Thread Roy Jacobs
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Tuna Toksoz
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Mikael Henriksson
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

[fluent-nhib] Re: Fluent NHibernate and IParameterizedType

2009-09-10 Thread DaeMoohn
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;

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Tuna Toksoz
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Mikael Henriksson
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 =>

[fluent-nhib] Re: Fluent NHibernate and indexes

2009-09-10 Thread DaeMoohn
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) >          

[fluent-nhib] Fluent NHibernate and indexes

2009-09-10 Thread DaeMoohn
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Tuna Toksoz
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Mikael Henriksson
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Tuna Toksoz
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

[fluent-nhib] Re: .AdoNetBatchSize not working?

2009-09-10 Thread Corey Coogan
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

[fluent-nhib] Re: RC1 joined-subclass automap missing properties

2009-09-10 Thread imonthercks
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

[fluent-nhib] .AdoNetBatchSize not working?

2009-09-10 Thread Mikael Henriksson
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... --~--~---