[fluent-nhib] Re: ManyToOneConvention for Foreign Keys (not Naming)

2009-02-14 Thread Ed C.
Actually, I don't believe I need this. If WithForeignKey() is omitted, the "foreign-key" attribute isn't in the HBM XML, but that's OK because NH creates a uniquely named foreign key constraint. (I verified this behavior against an MS SQL 2005 databse.) The problem I am running into is unrelated:

[fluent-nhib] Re: Fluent NHibernate and the Windsor NHibernate Integration Facility

2009-02-14 Thread TigerShark
Btw, NHibernate 2.1.0.1001 actually requires a new property (proxyfactory.factory_class), which isn't implemented from what I can see. On Feb 15, 2:21 am, TigerShark wrote: > Has there been any progress on this issue? I'm quite the newbie, but I > have been trying to get FluentNHibernate to work

[fluent-nhib] Re: Fluent NHibernate and the Windsor NHibernate Integration Facility

2009-02-14 Thread TigerShark
Has there been any progress on this issue? I'm quite the newbie, but I have been trying to get FluentNHibernate to work with the Castle NHibernate facility, but without any luck. The FluentNHibernate project seems to be rather dependent on NH 2.0.1.4000. I have tried to modify the project to use N

[fluent-nhib] Re: FluentNhibernate and BurrowFramework

2009-02-14 Thread Ed C.
+1 We're also using burrow, and passing around the Configuration would be great! On Feb 10, 9:22 pm, Paul Batum wrote: > James, could we add an overload for the Fluently.Configure method that takes > an existing Configuration? That would probably give Mark a nicer alternative > here. > > Paul >

[fluent-nhib] Re: How can I map tables under a specific user

2009-02-14 Thread James Gregory
Each database user is associated with a schema, so that's what you're actually interested in mapping. There are two ways to do it, and they're both covered in schemason the wiki. On Sat, Feb 14, 2009 at 7:54 PM, araujoao wrote: > > He

[fluent-nhib] ManyToOneConvention for Foreign Keys (not Naming)

2009-02-14 Thread Ed C.
Hi, list -- I'm using the AutoPersistenceModel and can manually call ForDerivedTypeOf<...> and add References(...).WithForeignKey() Instead of doing that for each model/entity, is it possible to define that in a Convention? Something like ManyToOneConvention = one => one.WithForeignKey() (I hav

[fluent-nhib] How can I map tables under a specific user

2009-02-14 Thread araujoao
Hello, How can I map sql server tables under a specific user. For example I have the table below, under the user test. How can I map that? CREATE TABLE [test].[Languages]( [LanguageID] [int] IDENTITY(1,1) NOT NULL, [Description] [varchar](50) COLLATE SQL_Latin1_Genera

[fluent-nhib] Re: Altering component maps for AutoPersistenceModel broken in recent changes

2009-02-14 Thread James Gregory
Strange, I'll look into this. On Sat, Feb 14, 2009 at 5:11 PM, Chris Marisic wrote: > > .ForTypesThatDeriveFrom(autoMap => > { > autoMap.Component(p => p.Address, addr => > { > addr.Map(c => c.Street, "Address"); > addr.Map(c => c.State, "Region"); > addr.Map(c => c.

[fluent-nhib] Altering component maps for AutoPersistenceModel broken in recent changes

2009-02-14 Thread Chris Marisic
.ForTypesThatDeriveFrom(autoMap => { autoMap.Component(p => p.Address, addr => { addr.Map(c => c.Street, "Address"); addr.Map(c => c.State, "Region"); addr.Map(c => c.City, "City"); addr.Map(c => c.Country, "Country"); addr.Map(c => c.PostalCode,

[fluent-nhib] Re: Can't build the latest version

2009-02-14 Thread Mikael
I think I had revision 313 when I wrote my first message about this. Now I updated it to 319 and everything is again working. Thanks! I'm btw using only TortoiseSvn, I don't have the commandline tools installed. On Feb 14, 12:20 pm, James Gregory wrote: > What revision are you on? Is your copy f

[fluent-nhib] Re: Removal of Framework project

2009-02-14 Thread James Gregory
Yeah, I still like that idea. The Framework project would've been more appropriately named FluentNHibernate.StuffWeDontReallyUse. I think the only things remaining from there were the SessionSource and PersistenceSpecification, everything else was unused. On Sat, Feb 14, 2009 at 4:00 PM, Chad Myer

[fluent-nhib] Re: Perhaps we should just push an 0.1 binary out there?

2009-02-14 Thread James Gregory
Actually, it's done :) I spoke to them all last night and we've managed to get it sorted. I'm just now updating the website to include a link to the downloads. On Sat, Feb 14, 2009 at 3:58 PM, Chad Myers wrote: > > FYI, Jeremy's out this weekend. I know they're still fiddling with > the CI stu

[fluent-nhib] Re: Removal of Framework project

2009-02-14 Thread Chad Myers
+1. I still like Jeremy's idea of an NHibernate grab-n'-go packaged framework starter. FluentNHibernate.Framework was not that, though. Of with its csproj! -c On Feb 13, 3:16 pm, James Gregory wrote: > Guys, > I forgot to mention this the other day when I did it, but just a heads up > that I'

[fluent-nhib] Re: Perhaps we should just push an 0.1 binary out there?

2009-02-14 Thread Chad Myers
FYI, Jeremy's out this weekend. I know they're still fiddling with the CI stuff and don't feel it's ready for public consumption yet. Perhaps that's why you're being stonewalled -- they can't deal with that right now? >From what I understand, they have big plans for this, and I know that FNH is

[fluent-nhib] sql-type="text" mapping

2009-02-14 Thread Foltz
hey, I came across what I think is bug in fluent-nh with the mapping of text fields (i.e. string-clobs). To verify that I am using the right technique, I tested this out with fluent mapping and using fluent-nh to read hbm maps as well. fluent: Map(x => x.Body).CustomSqlTypeIs("text"); hbm:

[fluent-nhib] Re: Can't build the latest version

2009-02-14 Thread James Gregory
What revision are you on? Is your copy from svn? Do you have the svn commandline tools installed? Our build script was updated to try to find out the svn revision it's being built from, and to sign the assemblies with it; however, it looks like there's a bug when it try's to ask subversion for the

[fluent-nhib] Can't build the latest version

2009-02-14 Thread Mikael
I updated the Fluent NHibernate to the latest version but I'm now having some problems building it. The older version (from ~3rd of February) built fine. When running the Build.bat, I get the following error: Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.5