[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Bart Reyserhove
Cool. Looking at it now. Thanks! On Fri, Aug 21, 2009 at 12:34 AM, José Romaniello wrote: > Bart, its done: > This is the interceptor for dynamicproxy: > > > http://code.google.com/p/unhaddins/source/browse/trunk/uNhAddIns/uNhAddIns.WPF.Castle/DataErrorInfoInterceptor.cs > > >

[nhusers] Re: Antlr3.Runtime version conflicts

2009-08-20 Thread Fabio Maulo
ILMerge...probably we will use it in next version 2009/8/20 Trinition > > I looked into assembly binding redirection, but it didnt' work because > the > Antlr3.Runtime versions I'm working with seem to have different public > keys > (I think... not sure). > I'll ponder whether I want o have to c

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Fabio Maulo
2009/8/20 José Romaniello > Now is working in the chinook media manager sample. In my next post I will > show some of this code. ahahahahahah LOL estas mas loco que una cabra... ahahahahahah -- Fabio Maulo --~--~-~--~~~---~--~~ You received this message becaus

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread José Romaniello
Now is working in the chinook media manager sample. In my next post I will show some of this code. 2009/8/20 José Romaniello > Bart, its done: > This is the interceptor for dynamicproxy: > > > http://code.google.com/p/unhaddins/source/browse/trunk/uNhAddIns/uNhAddIns.WPF.Castle/DataErrorInfoInte

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread José Romaniello
Bart, its done: This is the interceptor for dynamicproxy: http://code.google.com/p/unhaddins/source/browse/trunk/uNhAddIns/uNhAddIns.WPF.Castle/DataErrorInfoInterceptor.cs As you can

[nhusers] Re: Linq

2009-08-20 Thread Craig van Nieuwkerk
It's not that complex, it's just pretty much select * from client c left join clientcontact ct on c.clientid = ct.clientid left join clientaddress ca on c.clientid = ca.clientid where c.surname like 'smith' On Fri, Aug 21, 2009 at 12:46 AM, Tuna Toksoz wrote: > This is fairly complex query for

[nhusers] Re: batch_size

2009-08-20 Thread Fabio Maulo
I would be sure of what you are using.Please send here (using copy&paste) the NH configuration and the id-mapping of each entity involved in what you are testing. 2009/8/20 srf > > no, Im using Guids as the Id, should that effect trying to do batched > inserts? > > thanks > > scott > > On Aug 20

[nhusers] Re: batch_size

2009-08-20 Thread Tuna Toksoz
Identity style generators nullify batcher.But you're using Guid, you're safe. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Fri, Aug 21, 2009 at 12:48 AM, srf wrote: > > I was a little confused,

[nhusers] Re: batch_size

2009-08-20 Thread srf
I was a little confused, does the identity column type effect batched inserts and it will only work unser certain situations? thanks scott On Aug 20, 9:28 am, Fabio Maulo wrote: > If the batch size does no work for you perhaps is because > this:http://fabiomaulo.blogspot.com/2009/02/nh210-gene

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Fabio Maulo
Bart, have a look in uNhAddIns.WPF. There you can find ObservableCollections and entities with binding stuff. 2009/8/20 Bart Reyserhove > + 1 > No pressure at all, I just saw you were heading down the DynamicProxy path > and that got me interested. It would be supercool to have a DynamicProxy >

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Bart Reyserhove
+ 1 No pressure at all, I just saw you were heading down the DynamicProxy path and that got me interested. It would be supercool to have a DynamicProxy solution... On Thu, Aug 20, 2009 at 7:22 PM, Fabio Maulo wrote: > 2009/8/20 José Romaniello > >> Yes, please wait me an hour and I will give yo

[nhusers] Re: Custom Id Generator and "error performing isolated work"

2009-08-20 Thread Chris Nicola
You shouldn't have this problem with Sql express. I was able to make it work. There were two issues, the first is that Sqlite appears to lose the database if you dispose of the session. The second is that even if you save the database to a file Sqlite only allows one transaction at a time. Sinc,

[nhusers] Re: HiLo example

2009-08-20 Thread Oskar Berggren
Concerning the locking, this is not something you must do to get NHibernate to work correctly, since it already does that. Only if you implement the HiLo alg. in some other software will you (of course) need to think about this locking. /Oskar 2009/8/20 Tuna Toksoz : > You can mimic what NH Hil

[nhusers] Re: use an sql-query to load an entity

2009-08-20 Thread mathmax
magneto131 is the name of the mysql database (set in the config file). But Nhibernate shouldn't look at a table called Shipping in this database since the entity should be loaded via the sql query. On 20 août, 08:58, Stefan Steinegger wrote: > Where does this magneto131 come from? I is certainly

[nhusers] Re: batch_size

2009-08-20 Thread Cesar Sanz
Are you using auto-incremental ids? - Original Message - From: "srf" To: "nhusers" Sent: Thursday, August 20, 2009 7:55 AM Subject: [nhusers] batch_size > > I was tying out the nhProf and it was saying one optimization it was > mentioning was to use batching. For example , in one se

[nhusers] Re: HiLo example

2009-08-20 Thread Tuna Toksoz
You can mimic what NH Hilo Generator does. In application level: -You lock the table that holds the Hi part, fetch and increment -In your application, you hold Low, and access to that field/method should be serialzied -using the formula in the blogpost you can construct the final id. In dba level

[nhusers] Re: batch_size

2009-08-20 Thread srf
no, Im using Guids as the Id, should that effect trying to do batched inserts? thanks scott On Aug 20, 11:03 am, "Cesar Sanz" wrote: > Are you using auto-incremental ids? > > > > - Original Message - > From: "srf" > To: "nhusers" > Sent: Thursday, August 20, 2009 7:55 AM > Subject: [

[nhusers] Re: HiLo example

2009-08-20 Thread Cesar Sanz
Sorry but I did not understand. Do I need to run some script against my database? or where Do I enable that? - Original Message - From: Fabio Maulo To: nhusers@googlegroups.com Sent: Thursday, August 20, 2009 11:36 AM Subject: [nhusers] Re: HiLo example with (updlock, row

[nhusers] Re: Antlr3.Runtime version conflicts

2009-08-20 Thread Trinition
I looked into assembly binding redirection, but it didnt' work because the Antlr3.Runtime versions I'm working with seem to have different public keys (I think... not sure). I'll ponder whether I want o have to compile my own version of NHibernate against the newer Antlr3.Runtime. Thanks! Regard

[nhusers] Re: Custom Id Generator and "error performing isolated work"

2009-08-20 Thread spiralni
I am having the same problem, using hilo wiht MsSql2005 express.. How can I solve it? On Aug 18, 6:07 pm, Chris Nicola wrote: > Bah I hate it when I solve the problem 5 minutes after I ask. > > So it appears that SQLite in memory databases can only support one session > and after that they are

[nhusers] Re: Updating Validator message within Class validator

2009-08-20 Thread The Bread
That is exactly what I was looking for! Thanks! On Aug 19, 6:55 pm, Dario Quintana wrote: > Hey > > The answer it's called Constraint Validator Context. > > You can see some code of example of how to manage even multiples messages > for the same > propertyhttps://nhcontrib.svn.sourceforge.net/

[nhusers] Re: IgnoreCase not working

2009-08-20 Thread Fabio Maulo
Have a look to the "Welcome" message of our JIRA (top left) 2009/8/20 Joe > > > That's my next step -- just wanted to see if anyone already ran into > this and might know what I'm doing wrong. I'm assuming the problem is > with me and not NH. > > > For the test case, does it have to fit into th

[nhusers] Re: HiLo example

2009-08-20 Thread Fabio Maulo
with (updlock, rowlock) 2009/8/20 Cesar Sanz > > Hi, from a post I extracted this > > "... A HiLo id has 2 parts as the name suggests they are Hi and Lo. Each > session factory gets the Hi value from database (with locking enabled), and > lo values are managed by the session factory on its own.

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Fabio Maulo
2009/8/20 José Romaniello > Yes, please wait me an hour and I will give you the code. LOL. Don't feel the pressure continue step by step ;) -- Fabio Maulo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "nhu

[nhusers] Re: batch_size

2009-08-20 Thread Fabio Maulo
If the batch size does no work for you perhaps is because this: http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-explained.html Have a look what happen using identity. 2009/8/20 srf > > I was tying

[nhusers] AfterTransactionBegin in events

2009-08-20 Thread Niclas Pehrsson
Hi can I listen for AfterTransactionBegin in the new event system? like in interceptorpublic override void AfterTransactionBegin (ITransaction tx) { base.AfterTransactionBegin(tx); } Or am I stuck with the interceptor? :) --~--~-~--~~~--

[nhusers] Re: HiLo example

2009-08-20 Thread Cesar Sanz
Hi, from a post I extracted this "... A HiLo id has 2 parts as the name suggests they are Hi and Lo. Each session factory gets the Hi value from database (with locking enabled), and lo values are managed by the session factory on its own. .. " "Each session factory gets the Hi value from dat

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Fabio Maulo
I'll sent you a "Common.Validator"... after that dynproxy.The entity shouldn't be aware your UX needs. 2009/8/20 José F. Romaniello > > I think that will be interesting to share this code before I drop. > > If you are looking for an easy way to hang nhibernate validator to > work with wpf: > >

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread José Romaniello
Yes, please wait me an hour and I will give you the code. 2009/8/20 Bart Reyserhove > Do you have somewhere a sample that uses DynamicProxy? > > > On Thu, Aug 20, 2009 at 4:10 PM, José F. Romaniello < > jfromanie...@gmail.com> wrote: > >> >> I think that will be interesting to share this code be

[nhusers] Re: IgnoreCase not working

2009-08-20 Thread Joe
That's my next step -- just wanted to see if anyone already ran into this and might know what I'm doing wrong. I'm assuming the problem is with me and not NH. For the test case, does it have to fit into the NHibernate.Tests solution or can I just write a quick console app test that shows the p

[nhusers] Re: Nhibernate Validator and WPF

2009-08-20 Thread Bart Reyserhove
Do you have somewhere a sample that uses DynamicProxy? On Thu, Aug 20, 2009 at 4:10 PM, José F. Romaniello wrote: > > I think that will be interesting to share this code before I drop. > > If you are looking for an easy way to hang nhibernate validator to > work with wpf: > >public class Albu

[nhusers] Re: HiLo example

2009-08-20 Thread Jason Meckley
Ok so my understanding of HiLo is way off :) In response to 1. Yes, the DD is the integration point. It's terrible, but a reality. 2. I thought I read that HiLo is not a good choice if you are providing NH with the connection manually. On Aug 20, 10:53 am, "Cesar Sanz" wrote: > Oh.. thanks, goo

[nhusers] Re: Linq

2009-08-20 Thread Tuna Toksoz
This is fairly complex query for criteria api. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Thu, Aug 20, 2009 at 4:42 PM, Craig van Nieuwkerk wrote: > > I am using the version 1.0 release of Lin

[nhusers] Inverse=True (again)

2009-08-20 Thread spiralni
I don't get it :( I've read, and test all the references in the web, but this concept is just to complex for me.. Hope you can clarify me. >From the 2.1 Reference, I found this in the Bidirectional Associations topics, 1. "Please note that NHibernate does not support bidirectional one-to- many

[nhusers] Re: HiLo example

2009-08-20 Thread Sidar Ok
May be he means other applications that are assuming that MS SQL is taking care of the identity generation. Database as an integration point is yucky on its own anyway. On Thu, Aug 20, 2009 at 3:56 PM, Oskar Berggren wrote: > > Concerning use of HiLo... > > 2009/8/20 Jason Meckley : > > > Now the

[nhusers] Re: HiLo example

2009-08-20 Thread Cesar Sanz
Oh.. thanks, good article.. - Original Message - From: Sidar Ok To: nhusers@googlegroups.com Sent: Thursday, August 20, 2009 1:42 AM Subject: [nhusers] Re: HiLo example http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-explained.html On Wed, Aug 19, 2

[nhusers] batch_size

2009-08-20 Thread srf
I was tying out the nhProf and it was saying one optimization it was mentioning was to use batching. For example , in one session I was inserting 2000 records into the audit_log table and I was doing 2000 seperate insert statements and it mentioned to us the setBatchSize command so I used that th

[nhusers] Nhibernate Validator and WPF

2009-08-20 Thread José F . Romaniello
I think that will be interesting to share this code before I drop. If you are looking for an easy way to hang nhibernate validator to work with wpf: public class Album : IDataErrorInfo { //properties. string IDataErrorInfo.this[string columnName] { g

[nhusers] Linq

2009-08-20 Thread Craig van Nieuwkerk
I am using the version 1.0 release of Linq for nHibernate. When I run the following linq statements I receive the error not a single-length projection: Surname I can find very few references to this on the web and looking into the source it says it should never occur! ClientID is a Int type and

[nhusers] 2nd level cache - session's timestamp

2009-08-20 Thread Roger Kratz
Hi AFAIK session's timestamp isn't ever changed. Why isn't it updated when it commits a transaction? That would potentially give more cache hits if its life time spans more than one transaction. It's not a big deal at all, I'm more curious _why_ - it's obviously something that I miss. In what c

[nhusers] Re: HiLo example

2009-08-20 Thread Oskar Berggren
Concerning use of HiLo... 2009/8/20 Jason Meckley : > Now there are times why you can/should not use this strategy. > 1. if multiple applications can modify the data (CUD). Why can/should it not be used when multiple applications can modify the data? Hmm... Or do you mean when other apps not us

[nhusers] Re: HiLo example

2009-08-20 Thread Fabio Maulo
2009/8/20 Jason Meckley > > Now there are times why you can/should not use this strategy. > 1. if multiple applications can modify the data (CUD). False. The other application can/should implements HighLow (the first time I have used HighLow was in Delphi in 2001 obviously without NH). > 2. i

[nhusers] Re: two table grid binding

2009-08-20 Thread Fabio Maulo
I have sent this link yesterday but perhaps you don't paid attention http://jfromaniello.blogspot.com/2009/08/nhibernate-and-wpf-viewmodels-and-views.html Have a look to de video and you will see what you are lo

[nhusers] Re: IgnoreCase not working

2009-08-20 Thread Fabio Maulo
Test case in JIRA please.I mean... before create a JIRA please be sure of your issue proving it in a failing test. Thanks 2009/8/19 Joe > > I use QueryByExample in my application and set IgnoreCase which was > working fine. > > But, it seems to have broken when I upgraded from NH 1.2.1 to NH 2.1

[nhusers] Re: HiLo example

2009-08-20 Thread Jason Meckley
response inline On Aug 19, 5:58 pm, spiralni wrote: > Hello, > > I am studying the HiLo POID, but no working example is shown. > > - Can somebody show me how to use the HiLo? simple as putting it in the mapping or > - Where can I find examples of this? the link Sidar provided > - Can

[nhusers] NH.Linq problem - NHibernate.QueryException: could not resolve property

2009-08-20 Thread Filip Kinsky
I'm trying to make use of newly released NHibernate.Linq 1.0 provider in my application, but my queries are crashing on some simple conditions in where clause. I was trying to build the query in different way, but didn't found any working form. The failing query looks like this:

[nhusers] Re: Probable I/O race condition detected while copying memory

2009-08-20 Thread gor
Sorry for noice in conf, but I think it is due to property show_sql in config. Turned it off, testing further. On 20 авг, 12:22, gor wrote: > Hello ! I have exception, while using NHIbernate in testing. It is web > site. What could couse it ? Do I have some  problems with threads in > my code, o

[nhusers] Probable I/O race condition detected while copying memory

2009-08-20 Thread gor
Hello ! I have exception, while using NHIbernate in testing. It is web site. What could couse it ? Do I have some problems with threads in my code, or something wrong with logging in NH ? I use 2.1. the exception is: 2009-08-20 10:28:24,143 [16] WARN 1010 9 NHibernate.Util.ADOExceptionReporter

[nhusers] IgnoreCase not working

2009-08-20 Thread Joe
I use QueryByExample in my application and set IgnoreCase which was working fine. But, it seems to have broken when I upgraded from NH 1.2.1 to NH 2.1. The SQL generated appears to be the same, however, the parameters are not. Under NH 1.2.1, if I were to search for a string property with "A",

[nhusers] Re: HiLo example

2009-08-20 Thread Sidar Ok
http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-explained.html On Wed, Aug 19, 2009 at 11:58 PM, spiralni wrote: > > Hello, > > I am studying the HiLo POID, but no working example is shown. > > - Can somebody show me how to use the HiLo? > - Where can I find examples of this? >