[fluent-nhib] Re: Automapping many to one

2009-04-26 Thread MaggiePlusPlus
I am using AutoMap exclusively as well (but am also very new at this). I have gotten the Many-to-one mapping without changing manyToOnePart.write. in the parent class I have: public virtual IList Children { get; set; } in child class I have: public virtual Parent Parent { get; set; } parent xm

[fluent-nhib] Text length not being set in schema: #WithlengthOf #Convention #AutoMap

2009-04-26 Thread MaggiePlusPlus
Text length not being set in schema. I am using AutoMap for my schema and I added a convention to set the string length to 32. The exported xml shows the correct mapping but the 'create table' query sent to db (Access) does not contain the length number - just a $1 placeholder. I do not know whe

[fluent-nhib] Re: Problems using SQLite

2009-04-26 Thread Marcos Matos
It worked! Thanks a lot for the answer!! Marcos Castilho da Costa Matos --~--~-~--~~~---~--~~ 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.

[fluent-nhib] Re: Problems using SQLite

2009-04-26 Thread Paul Batum
Usually this problem occurs because the session used to export the schema is different to the session used to then query/execute against the db. The problem with the sessions being different is that they don't share the same underlying db connection, and you lose the changes made in the schema step

[fluent-nhib] Re: NHibernate Filters

2009-04-26 Thread Paul Batum
Hmm. For some reason I thought there was a fluent interface for defining filters. Typically in this sort of scenario I use the google code search for the xml element name such as "filter-def". In this case its turned up no results so it seems that I was mistaken. So what I suggest is that you defi

[fluent-nhib] Re: Use of PersistenceSpecification

2009-04-26 Thread Paul Batum
Well as I understand it, the problem is with using the persistence specification to verify the mapping. The mapping itself works, its just the the persistence specification isn't sophisticated enough to support the testing of this scenario. Am I missing something? On Sat, Apr 25, 2009 at 10:45 AM,

[fluent-nhib] Re: Adding .CustomTypeIs(typeof(int)) cause extra update statements

2009-04-26 Thread Roelof Blom
I use the following convention: public class EnumConvention : IPropertyConvention { public bool Accept(IProperty target) { if( target.PropertyType.IsEnum ) { return true; } Type t = Nullable.GetUnderlyingType(t