[fluent-nhib] Re: Ignore FormatException

2009-11-25 Thread Calin
Still stuck on this issue. Isn't there a way around it ? On Nov 24, 2:50 pm, Calin wrote: > Hi, > >  This seems preatty basic, but I can't find the answer anywhere. > >  I have a filed mapped like this: >  Map(x => x.BirthDate).Column("BirthDate") > >  The data in the database contains some error

Re: [fluent-nhib] Re: How to set column order

2009-11-25 Thread Paul Batum
Not at this stage, unfortunately. On Thu, Nov 26, 2009 at 9:25 AM, David Leite wrote: > Thanks for your answers. > So isn't there any trick to do it? > My mappings are very simple: > public class MyPersRootMap : ClassMap >{ >public MyPersRootMap() >{ > >Id(x => x.I

[fluent-nhib] Re: How to set column order

2009-11-25 Thread David Leite
Thanks for your answers. So isn't there any trick to do it? My mappings are very simple: public class MyPersRootMap : ClassMap { public MyPersRootMap() { Id(x => x.Id); Component(x => x.Reference, c => { c.Map(x => x.ObjectID).Col

Re: [fluent-nhib] Re: mapping for "dynamic instantiation" classes

2009-11-25 Thread Paul Batum
Can't you use reflection to find them in a particular namespace or whatever and then just call this method repeatedly? On Thu, Nov 26, 2009 at 6:53 AM, av wrote: > Thanks > > Is there any way to bulk "import" a bunch of these? > > On Nov 25, 2:37 pm, James Gregory wrote: > > You can use ImportT

[fluent-nhib] Re: mapping for "dynamic instantiation" classes

2009-11-25 Thread av
Thanks Is there any way to bulk "import" a bunch of these? On Nov 25, 2:37 pm, James Gregory wrote: > You can use ImportType() in your ClassMap definition. > > On Wed, Nov 25, 2009 at 7:14 PM, av wrote: > > Looking to do something like what was mentioned in the Nhibernate in > > Action below. B

Re: [fluent-nhib] mapping for "dynamic instantiation" classes

2009-11-25 Thread James Gregory
You can use ImportType() in your ClassMap definition. On Wed, Nov 25, 2009 at 7:14 PM, av wrote: > Looking to do something like what was mentioned in the Nhibernate in > Action below. Besides including an hbm mapping file, is there a > "fluent" way of importing non-mapped types? thanks > > > "Us

[fluent-nhib] mapping for "dynamic instantiation" classes

2009-11-25 Thread av
Looking to do something like what was mentioned in the Nhibernate in Action below. Besides including an hbm mapping file, is there a "fluent" way of importing non-mapped types? thanks "Using dynamic instantiation If you don’t find working with arrays of values a little cumbersome, NHibernate let’

[fluent-nhib] Orphans in db after SaveOrUpdate with Cascade.AllDeleteOrphans

2009-11-25 Thread CSNorris
I'm new to FNH, coming to it from SQLServer and all that mess, and I'm trying to come up to speed on a new project. We have the following (abridged) classes, where Claim is the parent and Transaction is the child. We have a dto that encapsulates a Claim with an array of Transaction. The classes a

[fluent-nhib] Re: Automapping multiple lists of the same type in an Entity - possible bug?

2009-11-25 Thread tbushell
On Nov 24, 4:58 am, Paul Batum wrote: > Interesting that the namespaces were the issue. I have no idea why this > would be the case. If I find the time, I might try to reproduce it, because > really this sounds like a bug to me. Yes, it certainly seems like a bug. > In general most people (in

[fluent-nhib] Re: Cannot build session with NHibernate.Cfg.Configuration

2009-11-25 Thread devonlazarus
Hi Guido, I do have the file set for Copy Always. That was my first thought and I appreciate the suggestion. On Nov 23, 2:23 am, Guido Ziliotti wrote: > If your mappings really work with fluent configuration then > hibernate.cgf.xml file was not found in the right place. Have you set "Copy > alw

[fluent-nhib] Re: Cannot build session with NHibernate.Cfg.Configuration

2009-11-25 Thread devonlazarus
@HMS Unfortunately, I'm not entirely clear on your comment, but I would very much apprecaite it if you could post back your solution. On Nov 15, 5:04 pm, HMS wrote: > It's telling you that you didn't use the Database call to configure > the database. I don't have the solution on hand atm, but I'

Re: [fluent-nhib] UserType in a CompositeId

2009-11-25 Thread Paul Batum
Hi Stefan, This was an easy one so I decided to bash it out. Its avaliable on my dev branch now: http://github.com/paulbatum/fluent-nhibernate/tree/dev Use it like this: CompositeId(x => x.Child).KeyProperty(x => x.ChildId, kp => kp.Type(typeof(MyCustomUserType))) James should be pulling my ch

[fluent-nhib] Re: Set sql type for References()

2009-11-25 Thread serdar
I have the same problem. Any solution yet? On 17 Kasım, 20:51, birchoff wrote: > Is is possible to set thesqltypeto use for thecolumngenerated by > References method.I have a table whose primary key is a varchar and I > have mapped the entity with a string id property. However when I try > torefe