[fluent-nhib] Re: Non-integer Identity

2009-05-26 Thread David Woods
I got this to work by not specifying any generator. i.e.: Id(x => x.Id).ColumnName("No_"); David Woods wrote: > I am mapping against a legacy database that's primary key is strings not > integers. Is there a way to use a string for the Id() mapping? (We can't &

[fluent-nhib] Non-integer Identity

2009-05-26 Thread David Woods
I am mapping against a legacy database that's primary key is strings not integers. Is there a way to use a string for the Id() mapping? (We can't add an artificial key to the database either). --~--~-~--~~~---~--~~ You received this message because you are subscr

[fluent-nhib] Re: adapting Examples.FirstProject to use JetDriver for testing

2009-03-16 Thread David Woods
I don't see any place that you have specified the connection string information in that mapping My MsSql2005 config looks like this (excuse the VB) Fluently.Configure(). _ Database(MsSqlConfiguration.MsSql2005.ConnectionString(Function(x

[fluent-nhib] Re: HasMany Type Safe Enums

2009-03-12 Thread David Woods
Lol. The project we are on is written in VB but thought I would translate it on the fly as most people on the list are C#'s :) Paul Batum wrote: > Dave I think you deserve some sort of award. I think your code sample > must be the first we've recieved that uses C# and VB interchangably :P > > On

[fluent-nhib] Re: HasMany Type Safe Enums

2009-03-11 Thread David Woods
gt; kind of behavior yet. Sorry. > > On Wed, Mar 11, 2009 at 2:50 PM, David Woods <mailto:d...@solidhouse.com>> wrote: > > I got the IUserType stuff to work using a Map() and CustomTypeIs<> > but I don't see a CustomTypeIs<> method on a HasMany(). Am I g

[fluent-nhib] Re: HasMany Type Safe Enums

2009-03-11 Thread David Woods
I got the IUserType stuff to work using a Map() and CustomTypeIs<> but I don't see a CustomTypeIs<> method on a HasMany(). Am I going about this the wrong way maybe? I have worked around it using an intermediary object which works but is a bit clunky :) James Gregory wrote: > You need an NHibe