Re: [nhusers] http://nhforge.org/ down?

2013-09-05 Thread Jeffrey Becker
In the mean-time the wayback machine helps: http://web.archive.org/web/20130614140833/http://nhforge.org/ On Wednesday, September 4, 2013 10:53:35 AM UTC-4, Oskar Berggren wrote: From what I can tell it's still registered to Dario, even if the DNS data is missing. Dario, are you seeing

[nhusers] Re: NH4.0.3 - Record versioning

2015-03-09 Thread Jeffrey Becker
NHibernate can the handle versioning for you with the version property http://nhibernate.info/doc/nh/en/#mapping-declaration-version. NHibernate.Envers https://bitbucket.org/RogerKratz/nhibernate.envers is probably what you want for auditing. On Monday, March 9, 2015 at 2:02:05 PM UTC-4, JJ BB

[nhusers] Re: NH4.0.3 - Mapping an .hbm.xml (enum property as int in database)

2015-03-10 Thread Jeffrey Becker
Try : property name=Access not-null=true / On Monday, March 9, 2015 at 3:26:14 PM UTC-4, JJ BB wrote: Hi Alexander, thanks for your answer. Your suggestion did not work. Finally the code working is: property name=Access type=myNamespace.ModulesAccess, myAssembly column

[nhusers] Re: NH4.0.3 - Record versioning

2015-03-18 Thread Jeffrey Becker
see http://nhibernate.info/doc/howto/various/changing-values-in-nhibernate-events.html which links to https://github.com/Buthrakaur/NHListenerTests/blob/master/NHListenerTest/SetModificationTimeFlushEntityEventListener.cs I've used this successfully in the past to implement that type of

[nhusers] Re: Simulate a stored procedure

2015-04-07 Thread Jeffrey Becker
The the short answer is: mostly you just write code. There are going to be more round-trips to the db but not excessively so. One of my logical stored procedures might look something like this: public int CreateSubmittal(string name, string mimeType, int projectId, Stream data) { using(var

[nhusers] Problems defining an HQL Generator

2015-10-21 Thread Jeffrey Becker
I'm having issues when trying to define an 'IsBetween' extension method per the attached files. NHibernate ends up throwing the following error and I'm at a loss about it: NHibernate.Hql.Ast.ANTLR.QuerySyntaxExceptionA recognition error occurred.

[nhusers] Re: Is there any plan to make nhibernate dnx core compatible?

2015-11-10 Thread Jeffrey Becker
Not really difficult so much as a lots of breaking changes. Plus some of the dependencies are not dnx core compatible. On Sunday, November 8, 2015 at 11:28:56 AM UTC-5, Ricardo Peres wrote: > > No plans, and for what I know, it's gonna be really difficult. > > RP > -- You received this message

[nhusers] Re: Problems persisting a base class

2015-11-02 Thread Jeffrey Becker
So this problem goes away when I disable Envers. I'm not able to make test project which exhibits the same behavior. On Sunday, November 1, 2015 at 11:49:10 AM UTC-5, Jeffrey Becker wrote: > > I'm receiving an error which I don't understand when trying to save my > Project entity. Th

[nhusers] Re: Parent/Child Timestamp delay upon persisting

2015-11-02 Thread Jeffrey Becker
Have you considered Envers? It seems to use only one time-stamp per transaction. On Monday, November 2, 2015 at 1:33:27 AM UTC-5, Doc wrote: > > I have a parent-child relationship where I track revision numbers for each > item. > > So I have: > > > > > > >

[nhusers] Problems persisting a base class

2015-11-01 Thread Jeffrey Becker
I'm receiving an error which I don't understand when trying to save my Project entity. The Project class is an abstract base class which has a bunch of basic functionality and several concrete implementations. My method: public void Handle(ProjectChanged message) { using (var tx =

[nhusers] Re: Nhibernate Mapping and Visual Studio 2015 problem

2015-11-05 Thread Jeffrey Becker
This doesnt happen to be an asp.net 5 project does it? On Thursday, November 5, 2015 at 3:52:26 AM UTC-5, Luka wrote: > > Hi, > I have a strange problem... > When I run my application (F5 -debug) from Visual studio 2015, it throws > exception: Could not compile mapping document DomainModel.

[nhusers] Re: Parent/Child Timestamp delay upon persisting

2015-11-03 Thread Jeffrey Becker
rall, I'm trying to avoid writing my own dirty-state > checking, but it seems it may be unavoidable. > > On Monday, November 2, 2015 at 8:28:02 AM UTC-7, Jeffrey Becker wrote: >> >> Have you considered Envers? It seems to use only one time-stamp per >> transaction. >> &

[nhusers] Re: Problems persisting a base class

2015-11-03 Thread Jeffrey Becker
ndipe > > On Sunday, November 1, 2015 at 5:49:10 PM UTC+1, Jeffrey Becker wrote: >> >> I'm receiving an error which I don't understand when trying to save my >> Project entity. The Project class is an abstract base class which has a >> bunch of basic function

[nhusers] Re: Problems persisting a base class

2015-11-02 Thread Jeffrey Becker
and public > (or protected)? > Can you post hbm.xml or mapping code? > > Best regards, > > Peter > > Am Sonntag, 1. November 2015 17:49:10 UTC+1 schrieb Jeffrey Becker: >> >> I'm receiving an error which I don't understand when trying to save my >> Project entity

[nhusers] Re: MVC 6

2015-10-12 Thread Jeffrey Becker
It looks like some of the dependencies aren't dnx compatible. On top of that there would probably be some pretty serious breaking changes for a dnx compatible NHibernate no? On Monday, October 12, 2015 at 9:09:39 AM UTC-4, Fabio Maulo wrote: > > If the problem is just the webcontext what you

[nhusers] Error : "could not set a property value by reflection setter of ..."

2015-09-29 Thread Jeffrey Becker
I'm getting an error about "could not set a property value by reflection setter of GpisReplacement.Domain.Phase.Id" when I go to commit a transaction. I've double-checked and that class has a public setter for that property. I've also double-checked that all my classes have a public or

Re: [nhusers] Error : "could not set a property value by reflection setter of ..."

2015-09-30 Thread Jeffrey Becker
an inner exception which should tell you more. > > 2015-09-29 21:37 GMT+02:00 Jeffrey Becker <jeffrey@gmail.com > >: > >> I'm getting an error about "could not set a property value by reflection >> setter of GpisReplacement.Domain.Phase.Id"

Re: [nhusers] Error : "could not set a property value by reflection setter of ..."

2015-09-30 Thread Jeffrey Becker
an inner exception which should tell you more. > > 2015-09-29 21:37 GMT+02:00 Jeffrey Becker <jeffrey@gmail.com > >: > >> I'm getting an error about "could not set a property value by reflection >> setter of GpisReplacement.Domain.Phase.Id"

Re: [nhusers] Insert and Update on the same record and transaction.

2015-12-07 Thread Jeffrey Becker
While I agree with Gunnar that Dynamic Component is a much better solution... Why not simply Flush the Session? On Friday, December 4, 2015 at 7:58:40 PM UTC-5, Felipe Oriani wrote: > > Gunnar Liljas, > > The interception we have implemented takes the transaction as the > argument. So, we've

[nhusers] Re: web api increasese memory in a few query with Nhibernate

2015-12-07 Thread Jeffrey Becker
1) Do you have the 2nd level cache turned on? 2) How are you determining that the application *uses* 1gb of ram? The .Net Runtime *never releases memory*. The vagrancies of Windows virtual memory and Garbage Collection are

[nhusers] Re: NHibernate session management question

2015-12-23 Thread Jeffrey Becker
Something Like: foreach(var client in listOfClients) { For() .Singleton() .Use(ctx=> new MyClientConfiguration(client.ConnectionString)) .Named(client.Name); For() .Singleton() .Use("SessionFactoryFuncOverload_"+client.Name,ctx=> ctx.GetInstance

[nhusers] Re: NHibernate Entity versioning (like Fileversions in Windows / prevent update)

2015-11-27 Thread Jeffrey Becker
Have you looked at envers ? On Friday, November 27, 2015 at 6:38:00 AM UTC-5, Reto Dalai lama wrote: > > How to prevent NHibernate perform updates on Entities? > > > In my opinion it should act like fileversion on Windows or VisualStudio > file history. > > > In our

[nhusers] Implementing a Custom IResultTransformer

2016-03-26 Thread Jeffrey Becker
If I'm implementing a custom result transformer is there anything I have to do in order to make sure that the entities get properly attached to the session? -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop

[nhusers] Re: NHibernate 4.1.1.GA released

2017-02-02 Thread Jeffrey Becker
What can I do in the future to help ensure I dont introduce this kind of regression? On Thursday, February 2, 2017 at 9:05:41 AM UTC-5, Dan Plaskon wrote: > > Thanks! > > On Wednesday, February 1, 2017 at 8:00:59 PM UTC-5, Alexander Zaytsev > wrote: >> >> NHibernate 4.1.1 is now released. >>

[nhusers] NHibernate Spatial errors when querying

2016-08-31 Thread Jeffrey Becker
I'm trying to get a NHibernate.Spatial project off the ground and I'm running into an error when querying: A .NET Framework error occurred during execution of user-defined routine or aggregate "geometry": System.FormatException: 24210: Geometry type with an unexpected version of 0 received;

[nhusers] Re: NHibernate in Asp.Net Core

2016-11-10 Thread Jeffrey Becker
So there are 2 parts to this: You can use NHibernate with an ASP.Net Core application *right now* so long as you're willing to take a dependency on windows / net461 framework. Mono may also work I'm not really sure. I'm doing this for a project and it works really well. If you're asking

[nhusers] HqlTree Inspection

2017-07-10 Thread Jeffrey Becker
I'm trying to write a fairly complicated HqlGeneratorForMethod implementation to wrap a noisy query in a clean name. I keep getting exceptions: NHibernate.Hql.Ast.ANTLR.QuerySyntaxException: 'A recognition error occurred.' Is there somewhere I can put a breakpoint to see the HqlTree that is

[nhusers] Re: Usage NHibernate 5 async method

2018-09-18 Thread Jeffrey Becker
You'll also need to wait on the call to ListFoldersAsync. Otherwise the work of dealing with the database may still be going on. Either var folders = await _adminService.ListFoldersAsync(); or, if you have to call this from a non-async context something like this may work but will be less than