These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: LoadAsync feature
PostPosted: Sat Nov 01, 2008 6:00 am 
Beginner
Beginner

Joined: Sun Oct 22, 2006 12:06 pm
Posts: 39
Hi!

Some times I'd like to draw the form or another items in application without waiting a nhibernate executing a query.

So how about this feature for a IQuery interface

IQuery q=sess.GetQuery("bla bla");
q.DataLoadCompleted+=new NHDataLoadHandler;
q.LoadAsync();

public void NHDataLoadHandler(object sender, DataEvent e)
{
bindingSource.Datasource=data.Result;
}


This would do a separate background request for the data and the ui does not have to wait for data loading, instead it will be populated when data is loaded.

Maybe the IQuery shouldn't do this job instead introduce a new interface for this

IQueryAsync

Any thoughts?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.