[fluent-nhib] Re: Simple modification to run with NH2.1Alpha2

2009-04-22 Thread Karron Qiu
There already are some patches for this problem, but the project doesn't accept them. I don't know why. On Thu, Apr 23, 2009 at 11:21 AM, Cristian Prieto wrote: > Any way to update or share my little hack? I mean, NH 2.1 alpha 2 is almost > an obligatory update for NH 2.1 alpha 1 users... > > > O

[fluent-nhib] Re: add some missing fluent api for some configuration settings

2009-04-03 Thread Karron Qiu
Sorry, I forgot the patch file. On Fri, Apr 3, 2009 at 8:38 PM, Karron Qiu wrote: > Hi, I added the following settings to PersistenceConfiguration: > UseQueryCache(), QueryCacheFactory, > UseSecondLevelCache,CacheProvider,SessionContextClass,SessionFactoryName, > GenerateStatistics

[fluent-nhib] add some missing fluent api for some configuration settings

2009-04-03 Thread Karron Qiu
Hi, I added the following settings to PersistenceConfiguration: UseQueryCache(), QueryCacheFactory, UseSecondLevelCache,CacheProvider,SessionContextClass,SessionFactoryName, GenerateStatistics. please take a look. thank you very much. -- Regards, Karron --~--~-~--~~~

[fluent-nhib] How to map IList as List in automapping?

2009-04-02 Thread Karron Qiu
There isn't a AsList() api in conversation. -- Regards, Karron --~--~-~--~~~---~--~~ 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 un

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
Yes, you are right. I understood your design. On Thu, Apr 2, 2009 at 5:16 PM, Karron Qiu wrote: > In my opinion, conversation is more general and high level than automapping > alteration. It's defferent with fluent mapping. > > when I choose auto mapping, it means I don't

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
our override if the > conventions were run first? > > Overrides can alter the mapping, so conventions have to be applied > last to accomodate for those potential changes. > > On 4/2/09, Karron Qiu wrote: > > I knew what is the problem. Because I wrote a HasManyToManyConversation

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
I knew what is the problem. Because I wrote a HasManyToManyConversation that set the table name, it overrided the EmployeeMap and TerritoryMap. I think this behavor is not correct, the priority of IAutoMappingOverride should higher than the conversation. On Thu, Apr 2, 2009 at 2:59 PM, Karron Qiu

[fluent-nhib] Re: AutoMap many-to-many table name

2009-04-02 Thread Karron Qiu
ng.HasManyToMany(t => t.Employees) .WithTableName("EmployeesToTerritories") .Inverse(); } } On Thu, Apr 2, 2009 at 2:33 PM, Karron Qiu wrote: > It seems this > issue<http://code.google.com/p/fluent-nhibernate/issues/detail?id=159>is >

[fluent-nhib] AutoMap many-to-many table name

2009-04-01 Thread Karron Qiu
It seems this issueis still not fixed. Is there any good solution to solve or avoid this problem? Thank you very much. -- Regards, Karron --~--~-~--~~~---~--~~ You received this message because you

[fluent-nhib] Re: When mapping a byte array, how do I specify the maximum size?

2009-03-24 Thread Karron Qiu
try this. .CustomTypeIs("BinaryBlob"); On Tue, Mar 24, 2009 at 7:20 AM, pangyan wrote: > > Hmm, I did try that. With the latest Fluent NHibernate build > (0.1.0.416), I get the following error: > > System.InvalidOperationException: Content is not a string > > It looks like WithLengthOf is only

[fluent-nhib] Re: Fails to build for NH 2.1

2009-02-25 Thread Karron Qiu
rake file. On Thu, Feb 26, 2009 at 9:42 AM, Karron Qiu wrote: > Yes, I have the same problem. There is a defect record about this. > > http://code.google.com/p/fluent-nhibernate/issues/detail?id=97 > > > > On Thu, Feb 26, 2009 at 5:11 AM, Martin Nilsson wrote: > >> Th

[fluent-nhib] Re: Fails to build for NH 2.1

2009-02-25 Thread Karron Qiu
Yes, I have the same problem. There is a defect record about this. http://code.google.com/p/fluent-nhibernate/issues/detail?id=97 On Thu, Feb 26, 2009 at 5:11 AM, Martin Nilsson wrote: > This fails for me: > > trunk>rake nhib21 > > Build log attached. But here is the first error: > > 1) Test E

[fluent-nhib] a patch for configuring adonet.batchsize

2009-02-25 Thread Karron Qiu
Hi, I created a patch for configuring adonet.batchsize, unit test included. Please have a look. Thanks. -- Regards, Karron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this

[fluent-nhib] Re: Enums not mapping properly

2009-02-23 Thread Karron Qiu
Thank you very much. It works. On Mon, Feb 23, 2009 at 4:25 PM, James Gregory wrote: > Try now. > > On Mon, Feb 23, 2009 at 5:04 AM, Karron Qiu wrote: >> >> It worked before. But the trunk version throws an exception: >> >> NHibernate.HibernateException:

[fluent-nhib] Enums not mapping properly

2009-02-22 Thread Karron Qiu
It worked before. But the trunk version throws an exception: NHibernate.HibernateException: Column, parameter, or variable #2: Cannot find data type string. -- Regards, Karron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[fluent-nhib] a patch for configuring nh2.1's proxyfactory.factory_class setting

2009-02-17 Thread Karron Qiu
proxyfactory.factory_class is a mandatory configuration in nh2.1 trunk version. I create a patch to configure this setting. Please have a look it. Thanks. By the way, I consider if we should set a default value for it when fluent nh supports nh2.1, such as "NHibernate.ByteCode.Castle.ProxyFactoryF

[fluent-nhib] Re: Can I get the nh's Configuration instance from FluentConfiguration?

2009-02-17 Thread Karron Qiu
Here is my patch for ExposeConfiguration, please have a look. On Wed, Feb 18, 2009 at 10:12 AM, Karron Qiu wrote: > Sorry for my bad English, that confused you. > > I have two reasons here. > > 1. ExposeConfiguration method can't be called many times. It's an >

[fluent-nhib] Re: In the nhib2.1 folder, the version of NHibernate.dll is 2.0.1.4000?

2009-02-17 Thread Karron Qiu
Thank you very much. On Wed, Feb 18, 2009 at 6:26 AM, C+++ wrote: > In fact, it's a simple patch, the way to retrieve the current dialect should > be changed in the SessionSource ctor to the one used in the Initialize > method. > > Like this: > -_dialect = _sessionFactory.Dialect; >

[fluent-nhib] Re: Can I get the nh's Configuration instance from FluentConfiguration?

2009-02-17 Thread Karron Qiu
t; Also, I wanted to add an overload to Fluently.Configure that takes an >>> existing Configuration object, there was one user that said this would >>> make >>> life much easier for him. Do you have a problem with this? >>> >>> >>> On Tue, Feb 17, 20

[fluent-nhib] In the nhib2.1 folder, the version of NHibernate.dll is 2.0.1.4000?

2009-02-17 Thread Karron Qiu
I copied my own nhibernate dlls to this folder, but compile failed, because ISessionFactory doesn't have Dialect now in the nhibernate svn version, but the SessionSource.cs uses it. -- Regards, Karron --~--~-~--~~~---~--~~ You received this message because you

[fluent-nhib] Re: Can I get the nh's Configuration instance from FluentConfiguration?

2009-02-16 Thread Karron Qiu
t; > > Or simple call ExposeConfiguration(Action) to modify/dowhatever > using a delegate. > > Tuna Toksöz > http://tunatoksoz.com > http://turkiyealt.net > http://twitter.com/tehlike > > Typos included to enhance the readers attention! > > > > On Tue, Feb 17, 2

[fluent-nhib] Re: Can I get the nh's Configuration instance from FluentConfiguration?

2009-02-16 Thread Karron Qiu
rs attention! > > > > On Tue, Feb 17, 2009 at 9:11 AM, Karron Qiu wrote: >> >> There is a property in FluentConfiguration, but it is internal... I >> want to hold the Configuration in my application because of some >> reasons. I can't use the ExposeConfigur

[fluent-nhib] Can I get the nh's Configuration instance from FluentConfiguration?

2009-02-16 Thread Karron Qiu
There is a property in FluentConfiguration, but it is internal... I want to hold the Configuration in my application because of some reasons. I can't use the ExposeConfiguration method. -- Regards, Karron --~--~-~--~~~---~--~~ You received this message because y

[fluent-nhib] How to map a key value pair table

2009-01-06 Thread Karron Qiu
Hi, I have two tables: Parents and ParentExtProperties. ParentExtProperties contains three columns: ParentId, Name, Value. I want to store some extension flied for Parent entity in this table. I don't want to create an entity for ParentExtProperties. the Parent entity likes this: public class P