Re: [nhusers] Re: Unable to cast CustomType to BooleanType - NHV3

2010-09-27 Thread Keith Bloom
Hello, Yes, whenever I try to do anything the the custom type, I get the casting error. Although, as Fabio said, it works fine with HQL :). I'm not sure that this is the same bug as described in NH-2334 though as that throws an NHibernate.HibernateException and I'm getting an NHibernate.QueryExce

[nhusers] Unable to cast CustomType to BooleanType - NHV3

2010-09-24 Thread Keith Bloom
Hello, I'm using an IUserType to to map integers in the database to booleans. I've just checked out and update to NH 3 and I'm now getting an excpetion: Unable to cast object of type 'NHibernate.Type.CustomType' to type 'NHibernate.Type.BooleanType' I little digging and it appears to be related

[nhusers] Re: ado timeouts

2009-04-21 Thread Keith Bloom
Hello, Does your application get a connection to the database at all? You can use NHProf http://nhprof.com/ to examine what is happening when the timeout occurs. Keith. 2009/4/21 Jan Limpens : > hello, > > on the production server (where else), my otherwise snappy web app suddenly > has timeou

[nhusers] Re: Adding Schema

2009-04-21 Thread Keith Bloom
For intellisense to work you have to added the NHibernate mapping schema to Visual Studio. First you need the file nhibernate-mapping.xsd from the src/Nibernate folder. You can get this by either downloading the source or from browsing the repository here: http://nhibernate.svn.sourceforge.net/vi

[nhusers] Re: nHibernate will it work on hosted sites?

2009-03-19 Thread Keith Bloom
I have read, but not experienced, that NHibernate can have problems on shared hosting running with medium trust due to the lazy loading and creation of proxies. Of course I'm paraphrasing others and this may no longer be a problem with the current build. My references: http://petersgekko.codebet

[nhusers] Re: Can composite elements have read only properties

2008-10-23 Thread Keith Bloom
d, you should be able to > set insert="false" and update="false" on the element in the > mapping. > > On Wed, Oct 22, 2008 at 5:03 AM, Keith Bloom <[EMAIL PROTECTED]> wrote: > > > Sorry for the confusion and I'm starting to come to the same > &g

[nhusers] Re: Can composite elements have read only properties

2008-10-22 Thread Keith Bloom
H should not populate the element, than your class (not > component) is readonly (mutable = false) or you don't map the value in > NH. If the access is mapped in NH than it can read/write the value. It > wouldn't make sense to only write values with NH. > > On Oct 20, 4:29 a

[nhusers] Re: Can composite elements have read only properties

2008-10-20 Thread Keith Bloom
Thanks, Keith On 17 Oct, 16:04, Jason Meckley <[EMAIL PROTECTED]> wrote: > just set the access attribute to nosetter.camelcase or whatever naming > strategy you use. > > On Oct 17, 10:19 am, Keith Bloom <[EMAIL PROTECTED]> wrote: > > > Hello, > > > Does

[nhusers] Can composite elements have read only properties

2008-10-17 Thread Keith Bloom
Hello, Does anyone know if this: // ... Some properties .. or something along these lines, is possible? The reason is I have a set of immutable prices in my model which is a combination of the price, units and the hol