[nhusers] Re: splitting big tables and entity-name feature

2009-08-16 Thread ReverseBlade
No one really worked with big tables ? On Aug 14, 5:39 pm, ReverseBlade wrote: > If you have 50 million of records then this solution is not feasible > imho, > that's why I am trying to split it. > > On Aug 14, 4:34 pm, Stefan Steinegger > wrote: > > > Why not simply: > > > IList result = sess

[nhusers] Re: Collection of subclasses mapped with the "subclass + join" strategy

2009-08-16 Thread Anne Epstein
Sounds like you're running into the same bug I reported here: http://nhjira.koah.net/browse/NH-1747 If this bug is a problem for you, it can't hurt to vote for/comment on the bug there... On Sun, Aug 16, 2009 at 8:24 AM, hival wrote: > > I have a simple hierarchy of classes mapped with the "subc

[nhusers] Re: Entity "version" update happening after Commit - not Flush?

2009-08-16 Thread Fabio Maulo
and the mapping is ? 2009/8/16 Luke Bakken > > Anyone? Is this expected behavior? > > On Fri, Aug 14, 2009 at 9:21 AM, Luke Bakken wrote: > > Well, you could build the DTOs after the commit, since the Session > > would still be open. > > > > In the example code I provided, here's how the version

[nhusers] Re: Entity "version" update happening after Commit - not Flush?

2009-08-16 Thread Luke Bakken
Anyone? Is this expected behavior? On Fri, Aug 14, 2009 at 9:21 AM, Luke Bakken wrote: > Well, you could build the DTOs after the commit, since the Session > would still be open. > > In the example code I provided, here's how the version is set: > >            using (ISession s = sessionFactory.O

[nhusers] Mapping strings and normalization

2009-08-16 Thread Kim Johansson
Hello dear NHibernate users! I have the following model: class Post { int Id; ICollection Tags; } class SomeotherClass { int Id; ICollection Tags; } How can I map these two entities to the same table? (The Tags property.) I know how you can map them with many-to-many, but I want to ke

[nhusers] Re: Sorting with bags

2009-08-16 Thread James Gregory
I assume you're the same person that posted the 6 messages on the fluent nhibernate mailing list concerning this, don't bother the nhusers list with it too. I'll reply on the fluent nhibernate list. On Sun, Aug 16, 2009 at 8:03 PM, codingfreak2009 wrote: > > Hi > > can any one let us know as to h

[nhusers] Sorting with bags

2009-08-16 Thread codingfreak2009
Hi can any one let us know as to how to sort the data that comes through a bag ( one to many relation) in fluent n hibernate ? the sorting needs to be done on the various columns/properties of the collection pulled out in the bag ? --~--~-~--~~~---~--~~ You recei

[nhusers] Bags using assigned ids

2009-08-16 Thread codingfreak2009
can any one let us know(sample / link) on how to create bags( for a one to many association) with the assigned ids in fluent n hibernate ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to t

[nhusers] Query over a Date Range

2009-08-16 Thread Berryl Hesh
My domain model works with dates a lot, and so there is a DateRange class to find out things such as does one period of time include another, i.e.: var allWeek = new DateRange(DateTime.Today, DateTime.Today.AddDays (7)); var thruTomorrow = new DateRange(DateTime.Today, DateTime.Today.AddDays(

[nhusers] Collection of subclasses mapped with the "subclass + join" strategy

2009-08-16 Thread hival
I have a simple hierarchy of classes mapped with the "subclass + join" strategy: and another entity is supposed

[nhusers] Re: Iesi collection in Nhibernate2.1

2009-08-16 Thread Tuna Toksoz
Looks like another version of the same issue. perhaps the redirects are wrong. It means that ISessionFactory had a breaking change. Try to remove all redirects and refresh all dlls. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com ht

[nhusers] Re: Iesi collection in Nhibernate2.1

2009-08-16 Thread Ahmed Emad
thx Tuna i tried to add the app.config again the previous error disappeared but i get another one: Method not found: 'System.Collections.IDictionary NHibernate.ISessionFactory.GetAllClassMetadata()'. 2009/8/16 Tuna Toksoz > You may have something in gac, you may have some leftoevers in some >

[nhusers] Re: Iesi collection in Nhibernate2.1

2009-08-16 Thread Tuna Toksoz
You may have something in gac, you may have some leftoevers in some projects bins Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Sun, Aug 16, 2009 at 2:29 PM, Ahmed Emad wrote: > > hi > when i us

[nhusers] Iesi collection in Nhibernate2.1

2009-08-16 Thread Ahmed Emad
hi when i used Nhibernate 2.1 and Set it still need Iesi Collection but when i use it with wpf project i always get this error Could not load file or assembly 'NHibernate, Version=2.0.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's mani