[nhusers] Re: eager fetching over multiple levels, that's more than 2 :-)

2009-08-10 Thread mhnyborg
KS Assert.AreEqual(baselines[0].BaselineMilestones.Count, 56); TO MANY RETURNED The problem is that I need a DistinctRootEntity logic to be applied to BaselineMilestones On Aug 10, 11:08 pm, Fabio Maulo wrote: > which is the question ? > > 2009/8/10 mhnyborg > > > > > > &

[nhusers] eager fetching over multiple levels, that's more than 2 :-)

2009-08-10 Thread mhnyborg
I just want to here if NH 2.1 has some new features that makes selection from 3 levels possible. for example I want to load all customers with all orders and order lines. I can get the Customers and orders using Transformers.DistinctRootEntity but that's only fixes the customer collection I get t

[nhusers] Re: Future is not playing nice with web-services

2009-07-26 Thread mhnyborg
gt; datacontracts, and just do a .ToArray() when you're assembling your > CatalogsForSite object.  Your DataContracts shouldn't mention anything about > an implementation detail of your persistence layer IMO. > > > > On Mon, Jul 27, 2009 at 12:15 AM, mhnyborg wrote: > &g

[nhusers] Re: Future is not playing nice with web-services

2009-07-26 Thread mhnyborg
t; crossing an AppDomain boundary you should already have all data you need in > place and ready for marshalling them. Any form of lazy evaluation will hardly > work over the wire > > -Erich > > > > > -Original Message- > > From: nhusers@googlegroups.com [m

[nhusers] Future is not playing nice with web-services

2009-07-26 Thread mhnyborg
First I love how easy it is to use Future but I think it's only half baked. or put in another way only implemented for server side code that is not returning a list. I have this code that's is returning a lot of simple catalogs for comboboxes OperationContract] public CatalogsForSite GetCatalogs

[nhusers] Re: In memory test

2009-05-04 Thread mhnyborg
I thank you all for the input I think I will start with an local database that is empty. Populate the tables in TestFixtureSetUp or with a SQL Script. Run the tests. And clean up, does that sound OK? On May 4, 8:55 pm, Enrique Ramirez wrote: > You could probably create a test case or two, time

[nhusers] In memory test

2009-05-03 Thread mhnyborg
I love the idea of in memory test. But can it be don if the database has 200 tables? I men does it take to long. Hope to here from someone that have tried it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers

[nhusers] How can I get the Entity in the OnDirtyCheck event?

2009-03-16 Thread mhnyborg
The PostLoadEvent has an entity as an property, but the OnDirtyCheck has Session and IsDirty. What is the purpose of this event? I have implemented dirty tracking and IsNew, IsDeleted on the entites and I am using them in a Silverlight app. I just want to tell NH which object to save, update and

[nhusers] NHibernate.LambdaExtensions - CreateCriteria(typeof (Milestone))

2009-03-15 Thread mhnyborg
I think that all hard-coded database field names is evil. and that's way I love fluent NH and LambdaExtensions Can someone tell me if it's possible to remove [CreateCriteria ("Definition")] with some LambdaExtensions API IList milestones = session.CreateCriteria(typeof (Milestone)) .Add(

[nhusers] Mapping object relations to the same table

2009-03-02 Thread mhnyborg
Have can I map this NCP has a collection of Candidates Candidate has a collection of FO and not always an NCP parent The data is all in the same table. I am rewriting an old MS Access application and the application have the concept of a Nominal Cell Point (NCP) . A NCP have Candidates and an A

[nhusers] Stored Procedure mapping

2009-01-28 Thread mhnyborg
I am trying to execute a SP with 2 parameters. I have created a DTO to map to but I can't get it to work. I have spent 3 hours with google and the debugger Can some one help me. exec site.spSiteSearchForSiteIDsAndSiteName @Search=?, @MaximumRecordsT

[nhusers] WCF and session

2008-12-16 Thread mhnyborg
I have search google and this group for how to manged session with WCF. I am going to use the result of this is that i got a session per users request. Where do i create the session factory, and how do I manged sessions and transaction. And yes I know that I have to prefetch all collections th

[nhusers] Re: Unsure about the status of LINQ to NHibernate

2008-12-16 Thread mhnyborg
Download Fluent-NH and use the dll's from there. that works On Dec 16, 12:30 pm, "Davy Brion" wrote: > the build output of the trunk should have the > NHibernate.ProxyGenerators.CastleDynamicProxy assembly... you need to > reference it > > > > On Tue, Dec 16, 2008 at 12:23 PM, Michiel wrote: >

[nhusers] Re: Development environment

2008-12-12 Thread mhnyborg
Yes I have chosen TeamCity and of curse R# On Dec 11, 3:15 pm, N.D. wrote: > did you check TeamCity? > > On Thu, Dec 11, 2008 at 2:37 PM, mhnyborg wrote: > > > Yes I mean a CI server > > > On Dec 10, 4:09 pm, "James Gregory" wrote: > > > QA se

[nhusers] Re: Development environment

2008-12-11 Thread mhnyborg
/installation. > > On Wed, Dec 10, 2008 at 2:16 PM, Ayende Rahien <[EMAIL PROTECTED]> wrote: > > gogrid.com > > > On Wed, Dec 10, 2008 at 7:40 AM, mhnyborg <[EMAIL PROTECTED]> wrote: > > >> I know that this is out of topic, but can anyone help me with a pl

[nhusers] Re: Development environment

2008-12-11 Thread mhnyborg
This looks VERY interesting, Thanks On Dec 10, 3:16 pm, "Ayende Rahien" <[EMAIL PROTECTED]> wrote: > gogrid.com > > On Wed, Dec 10, 2008 at 7:40 AM, mhnyborg <[EMAIL PROTECTED]> wrote: > > > I know that this is out of topic, but can anyone help me with

[nhusers] Development environment

2008-12-10 Thread mhnyborg
I know that this is out of topic, but can anyone help me with a plan for setting up a development environment. We need this - a web server with a WIKI and access to subversion code repository - a build server - a test server - a xx what else? We are a group of 5 that that are going to work with

[nhusers] LINQ Provider again

2008-11-24 Thread mhnyborg
I think that we all know that NH needs a full-blown LINQ Provider. If it had one, then there would be no competition - POCO, LINQ and fluent- NH is VERY hard to beat. But have do we get started? Oren (http://ayende.com/Blog/archive/ 2008/11/01/developing-linq-to-nhibernate.aspx) estimates that i

[nhusers] Proxies as DTO

2008-10-05 Thread mhnyborg
Maybe a stupid question - Is it possible to use proxies as dto's. Now that we got the new proxy generator --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@g

[nhusers] Re: Silverlight, services, nhibernate.linq

2008-09-14 Thread mhnyborg
Please gotto www.silverlight.net there you can find examples on all kind og silverlight communication (wcf, dataservices, raw json) and remember a silverligt client is NOT a 2-tier application you will always have dataservice out there that you access with HTTP On Sep 13, 9:08 pm, DanSkrekovski <