[fluent-nhib] Re: SchemaUpdate and Fluent NH

2009-03-16 Thread Sushant
I am getting an error from the database which says that there are invalid columns..(when I use session.SaveOrUpdate()) If I expose the configuration from : private static ISessionFactory CreateSessionFactory() { return Fluently.Configure()

[fluent-nhib] Re: SchemaUpdate and Fluent NH

2009-03-16 Thread Sushant
Is my CODE correct? and Should I use SQL Server CE instead.. will it work there? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Fluent NHibernate group. To post to this group, send email to

[fluent-nhib] Re: SchemaUpdate and Fluent NH

2009-03-16 Thread James Gregory
It looks correct. On Mon, Mar 16, 2009 at 8:01 AM, Sushant mpsk2...@gmail.com wrote: Is my CODE correct? and Should I use SQL Server CE instead.. will it work there? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[fluent-nhib] Problem Mapping Generic Base Types

2009-03-16 Thread Adam
I started by using Fluent Mapping to configure my entity mappings, initially my entities had no base class and the mappings worked as expected, here are my entities, note that I've removed all private field definitions to make the code easier to read: public class Address { public virtual

[fluent-nhib] Re: SchemaUpdate and Fluent NH

2009-03-16 Thread Sushant
Does SQL Server CE support my requirements.. any concrete answers.. I can change my DB cuz I'm building a concept test program right now.. I cannot give up FNH .. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[fluent-nhib] Re: SchemaUpdate and Fluent NH

2009-03-16 Thread Tuna Toksoz
Just go with mssql 200x (where x!=0) or SqlExpress if you can. Tuna Toksöz http://tunatoksoz.com http://devlicio.us/blogs/tuna_toksoz http://twitter.com/tehlike Typos included to enhance the readers attention! On Mon, Mar 16, 2009 at 10:12 AM, Sushant mpsk2...@gmail.com wrote: Does SQL

[fluent-nhib] Re: SchemaUpdate and Fluent NH

2009-03-16 Thread Tuna Toksoz
I guess oracle and mssql are fine enough. But I may be wrong on the others. Tuna Toksöz http://tunatoksoz.com http://devlicio.us/blogs/tuna_toksoz http://twitter.com/tehlike Eternal sunshine of the open source mind. On Mon, Mar 16, 2009 at 12:22 PM, Sushant mpsk2...@gmail.com wrote: Cool.

[fluent-nhib] Re: Mapping issue

2009-03-16 Thread Andrew Burns
I will download it today and check it out. Thank you very much James. On Mar 14, 4:25 pm, James Gregory jagregory@gmail.com wrote: Consider it fixed. There's now a NotFound property on HasMany and HasManyToMany. On Sat, Mar 14, 2009 at 6:57 PM, Adam Dymitruk adymit...@gmail.com wrote:

[fluent-nhib] Re: How to make IClassConvention or IIdConvention not override my ClassMap

2009-03-16 Thread James Gregory
There's a TableName property in IClassMap, so you could do: return string.IsNullOrEmpty(target.TableName) Similarly there's a GetColumnName() method on IIdentityPart. On Mon, Mar 16, 2009 at 3:07 PM, JohnRudolfLewis johnrle...@gmail.comwrote: I have a domain entity class with a silly long

[fluent-nhib] AutoMap one-to-one

2009-03-16 Thread Saintedlama
I'm using auto mapping in my project and I'm trying to map a User to a Profile. The domain model looks something like: public class User { public virtual int Id { get; set; } public virtual Profile Profile { get; set; } // ...

[fluent-nhib] Re: Auto-mapping many-to-many using attributes

2009-03-16 Thread Jon Kruger
I should add that in this case, I don't have the inverse property (IListItinerary Itineraries on Activity) on my other class. If I did, then the auto-mapper would make a many-to-many for me. I have no reason to ever need or want the inverse property on the other object, and I don't really want

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

2009-03-16 Thread MaggiePlusPlus
I found that the NHibernate.JetDriver.Dll was not in the project so I added it - I'm not sure if it is needed since it wasn't included in the source here. I will try again later to see if I can get the connection string correct. Thanks, Maggie

[fluent-nhib] How-To setup ConnectedTester class with event listeners

2009-03-16 Thread mhnyborg
I am using the ConnectedTester class from the FNH test project. Can anyone tell me how to get access to the NH configuration object. This is what I want to do. Configuration cfg = new Configuration(); cfg.EventListeners.SaveEventListeners = new ISaveOrUpdateEventListener[] {new