I figured out what I was looking for ... I needed to use
ForTypesThatDeriveFrom:


            AutoPersistenceModel.MapEntitiesFromAssemblyOf<Foo>()
                .Where(t => t.Namespace == "Bar")
                .WithConvention(c => {
                        c.GetForeignKeyName = p => p.Name + "Id";
                })
                .ForTypesThatDeriveFrom<Foo>(map => map.Map(f =>
f.Description).WithLengthOf(3000))
                .ForTypesThatDeriveFrom<Foomap => map.Map(f =>
f.Bar).WithLengthOf(300))
                .Configure(config);

Hope this helps somebody else :)

Jereme





On Dec 18, 2:46 am, "Paul Batum" <[email protected]> wrote:
> The conventions class has a DefaultStringLength property. It defaults to
> 100.
>
> On Thu, Dec 18, 2008 at 2:37 PM, <[email protected]> wrote:
>
> > Hi,
>
> > I would like to generate my database using SchemaExport via the
> > configuration that comes from the AutoPersistenceModel. Everything
> > looks good and works except that all the string properties are
> > generated as varchar(100) ... is there a way to specify the size of
> > properties so the AutoPersistenceModel will figure it out? Perhaps an
> > attribute I don't know of?
>
> > Thanks for your help!
>
> > Jereme
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to