[nhusers] Re: Where can I find information of the iesi.collections 3.2.0.4000 license?

2021-08-06 Thread Oskar Berggren
On Tuesday, August 3, 2021 at 8:48:14 PM UTC+2 marko.t...@gmail.com wrote: > I would like to find licence information of the outdated 3.2.0.4000 > iesi.collections? I can only find license information for iesi.collections > 4.* versions. > If you are talking about the nuget packages, then

[nhusers] Re: Asp.Net MVC + Nhibernate Issue after add a new column in SQL and try for add/update operations

2021-02-01 Thread Oskar Berggren
Hi, I feel like you kind of skipped over something there - you say you "tried creating", even by manual action in GUI, and you get an exception from runtime about invalid column name. But do you actually have the column in the (correct) table in the (correct) database or not? In other words -

Re: [nhusers] Re: Left outer join issues - FluentMapping for 3.1 and Nhibernate 5.3,

2020-12-16 Thread Oskar Berggren
Your query example seems seems odd too. The variable `jobs` should be typed as IList but then you try to access `jobs.Departments` - but `Departments` is hardly defined by the IList interface, so what is really going on? Den ons 16 dec. 2020 kl 11:27 skrev Oskar Berggren : > Where is the HasM

Re: [nhusers] Re: Left outer join issues - FluentMapping for 3.1 and Nhibernate 5.3,

2020-12-16 Thread Oskar Berggren
Where is the HasMany() mapping? Also, you have put Inverse on the References() mapping. I don't think I've ever tried that, I've only ever put Inverse() on the HasMany-side. Den ons 16 dec. 2020 kl 10:08 skrev Venkata Krishna Reddy Sangu < svkreddy...@gmail.com>: > Team, Any idea on this issue?

Re: [nhusers] NHibernate Session register

2020-10-31 Thread Oskar Berggren
Hi, If you load an object using the NHibernate session and modify that object in memory and then commit the transaction, a common behaviour is that NHibernate would detect the changes in the object (dirty checking) and transmit the changes to the database (flushing) before issuing the command to

Re: [nhusers] not able to handle concurrency and throwing exception (NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction)

2019-10-22 Thread Oskar Berggren
Hi, It's difficult to say for sure with just a small method like this taken out of context. The problem is likely in the interaction between different parts of your application. I will say however that I'm very suspicious of your Save() method. I mean no offence, but to me it looks like a

Re: [nhusers] Loading Multiple Hbm Files Through Configuration.AddXmlFile

2019-07-29 Thread Oskar Berggren
File names: 0001-whatevber.hbm 0002-whatever.hbm and so on. Den mån 29 juli 2019 kl 16:13 skrev David Ackroyd < davidackroydmu...@gmail.com>: > Hi All, > > I was wondering if there was any way to add a list of xml files all at > once, rather than calling AddXmlFile on each file? For various

Re: [nhusers] Excessive SessionFactory memory usage with multiple databases

2019-05-03 Thread Oskar Berggren
You can implement your connection provider. Or connection manager. Den fre 3 maj 2019 kl 14:00 skrev Paul Duran : > We have a fairly large NHibernate configuration of approximately 300 > entities / tables. > > I've taken a memory dump of our application and I can see that the > SessionFactory

Re: [nhusers] Is NHibernate 5.x compatible with ARM architecture?

2019-03-07 Thread Oskar Berggren
NHibernate and FluentNHibernate are, to my knowledge, still fully managed code and independent of the CPU architecture assuming you have a working .Net environment. Den tors 7 mars 2019 kl 15:54 skrev : > We are developing a .net core 2.0 background application for *Raspberry > PI 3 with Windows

Re: [nhusers] Does nhibernate fully supports .net core 2.1?

2019-02-05 Thread Oskar Berggren
Is core 2.1 fully backwards compatible? On Tue, 5 Feb 2019, 16:12 Roshan Budhathoki I went through nuget package of nhibernate 5.2.3 has .net core 2.0 > dependencies. But it fully supports .net core 2.1? > > -- > You received this message because you are subscribed to the Google Groups >

Re: [nhusers] Questions regarding migration from MySQL to Postgresql

2018-12-10 Thread Oskar Berggren
I believe "native" on the generator should generate a sequence in PostgreSQL. I don't know if NHibernate can generate "CREATE TYPE". I have never actually used the schema generation in a production scenario, preferring to write the SQL schema upgrade scripts manually instead, as this is the only

Re: [nhusers] Consumer Producer architecture Could not initialize proxy - no Session

2018-11-30 Thread Oskar Berggren
That sounds much more straight-forward an easier to understand. :) /Oskar Den tors 29 nov. 2018 kl 20:46 skrev Gökhan Abatay : > Hi Oskar Berggren, > Thank you for quick response, actually I change my perspective after > posing this message now I have the same idea with you. > I ch

Re: [nhusers] Hql Insert into Select from

2018-11-30 Thread Oskar Berggren
But HQL is not SQL. Are you looking for CreateSQLQuery()? /Oskar Den fre 30 nov. 2018 kl 15:29 skrev Gökhan Abatay : > Hi I need to pass sequence to hql but it gives me error? > > sequenceNextValSql taken from dialect and it's value for oracle = > MY_SCHEMA.SEQUENCE_NAME.nextval > >

Re: [nhusers] Consumer Producer architecture Could not initialize proxy - no Session

2018-11-29 Thread Oskar Berggren
I looks to me like you are accessing a bunch of interfaces that are not necessarily the official way to work with NHibernate. The ISession provides the interface to reattach objects. Personally I've always found Evict/Attach messy, to be honest. You mention that you need very good performance.

Re: [nhusers] nhibernate in old dot net code

2018-11-18 Thread Oskar Berggren
NH4 doesn't support .Net lower than 4.0 does it? Den sön 18 nov. 2018 kl 16:54 skrev Gunnar Liljas : > I don't see why not. You also have Linq to SQL built into the framework, > if the target is SQL Server. It's actually quite good. Certainly better > than EF1. But NHibernate will provide a

Re: [nhusers] Add auditing through Http

2018-11-13 Thread Oskar Berggren
Den tis 13 nov. 2018 kl 19:10 skrev Pratip Bagchi : > Thanks Roger. But do I pass a new IHttpContextAccessor to the > RevisionListener. My "AddNhibernate" service extension called only once in > Startup and as IHttpContextAccessor is singleton in nature once it is > initialized it is holding the

Re: [nhusers] Add auditing through Http

2018-11-12 Thread Oskar Berggren
Envers isn't my strong side, but why can't your RevisionListener access HttpContext.Current on the fly? /Oskar Den mån 12 nov. 2018 kl 17:45 skrev Pratip Bagchi : > I am in dire need of your help. I have migrated some legacy .Net web API > applications to .net core and get it all working

Re: [nhusers] Nhibernate tries to UPDATE another table when i run select query

2018-10-01 Thread Oskar Berggren
Den mån 1 okt. 2018 kl 16:24 skrev Yılmaz Demir : > *Exception Line:* > > var retVal = query.Where(() => !realtyFileAlias.IsDeleted && > realtyFileAlias.TypeId == (int)RealtyFileType.Image) > .SelectList(builder => builder .Select(file => file.RealtyId)).List > (); > > > > > > update for other

Re: [nhusers] Nhibernate tries to UPDATE another table when i run select query

2018-09-27 Thread Oskar Berggren
Which line exhibits the exception, what other tables are updated and what are your mappings? On Thu, 27 Sep 2018, 19:26 Yılmaz Demir, wrote: > *C# Code:* > > var query = Session.QueryOver(() => realtyFileAlias); > query = query.Fetch(sub => sub.Realty).Eager; > > query =

Re: [nhusers] Nhibernate support for .NET CORE 2.0

2018-01-24 Thread Oskar Berggren
Historicall NHibernate have worked well on Mono in Linux since forever. I'm not up to date on the .Net standard patches. /Oskar 2018-01-24 16:19 GMT+00:00 LightCZ : > It has been a while for .NET CORE 2.0 (.NET Standard 2.0) to be out now. I > know about many

Re: [nhusers] How persist euro symbol in oracle database with NH

2017-12-07 Thread Oskar Berggren
The euro symbol is defined in code page ISO-8859-15 - I'm not very familiar with Oracle, but it would seem that the Oracle client driver (from Oracle) doesn't use ISO-8859-15 or doesn't agree with the server what encoding to use. NHibernate sends .Net strings (internally encoded as UTF-16 I

Re: [nhusers] how to use nvarchar(max) in hibernate xml

2017-12-05 Thread Oskar Berggren
To be clear, length must be at least 4001 and at most 1073741822. 2017-12-05 21:30 GMT+00:00 Oskar Berggren <oskar.bergg...@gmail.com>: > type is not necessary. Set length="" to anything between 4000 and > 1073741822 (i.e. 1GB-2bytes) and you will get nvarchar(max). > &g

Re: [nhusers] how to use nvarchar(max) in hibernate xml

2017-12-05 Thread Oskar Berggren
type is not necessary. Set length="" to anything between 4000 and 1073741822 (i.e. 1GB-2bytes) and you will get nvarchar(max). 2017-12-05 3:32 GMT+00:00 chaitanya krishna : > HI i am new to nhibernate i am facing one problem using nhibernate > > i read some where article

Re: [nhusers] which nhibernate version to dot net 4.0,4.5.2,4.7

2017-10-25 Thread Oskar Berggren
uggest > > On Tuesday, October 24, 2017 at 12:54:29 AM UTC+5:30, Oskar Berggren wrote: > >> NH 4.1 >> >> 2017-10-23 19:52 GMT+01:00 newnhibernateUser <naheed...@gmail.com>: >> >>> Hello All, >>> >>> WE have nhibernate 1.0 implemented with

Re: [nhusers] which nhibernate version to dot net 4.0,4.5.2,4.7

2017-10-23 Thread Oskar Berggren
NH 4.1 2017-10-23 19:52 GMT+01:00 newnhibernateUser : > Hello All, > > WE have nhibernate 1.0 implemented with dot net 3.5. Now we are planning > to migrate newer version. > > Please suggest which are the nhibernate version compatible with below > given dotnet version >

Re: [nhusers] Support Needed

2017-09-05 Thread Oskar Berggren
Might be to use standard .Net deserializing on it? 2017-09-05 6:44 GMT+01:00 Ashwin Kamath : > How to convert bye[] to string[] > > On Monday, September 4, 2017 at 8:27:25 PM UTC+5:30, saltcode wrote: >> >> You read it as byte array ado.net data type >> >> On Sep 4, 2017

Re: [nhusers] Steps on adding a new table to the sql database

2017-08-13 Thread Oskar Berggren
of an object.' >>> >>> However, I cannot figure out why this is the problem. >>> >>> Op zaterdag 12 augustus 2017 11:05:48 UTC+2 schreef Oskar Berggren: >>>> >>>> GenereicAdoException will have an InnerException property, and that in >&

Re: [nhusers] Steps on adding a new table to the sql database

2017-08-12 Thread Oskar Berggren
GenereicAdoException will have an InnerException property, and that in turn may also have an InnerException and so on. These will often tell you what the problem is. /Oskar 2017-08-11 1:44 GMT+01:00 Ganesh Gebhard : > Sure. Everytime I want to add a new table, I get the

Re: [nhusers] NHibernate and 64-bit Support

2017-06-07 Thread Oskar Berggren
I wasn't aware of any 64-bit problem in 2.2, but for sure I'm running NH 3.3 on 64-bit for many years with no problem. A requirement is of course that the underlying ADO.Net database driver doesn't use native 32-bit only code. Have you checked to make sure this isn't the problem here? /Oskar

Re: [nhusers] Converting NHibernate.SQL log messages into useable SQL statements

2017-05-01 Thread Oskar Berggren
Very interesting! Some feedback: I think it would be good if it could optionally retain the parameters (i.e. generate DECLARE statements with the values before the exected SQL, while generally leaving the SQL as-is). Executing this query will more closely resemble what happens when NHibernate

Re: [nhusers] Could not compile the mapping document

2017-04-11 Thread Oskar Berggren
Provide the relevant information as text in the message please. /Oskar 2017-04-11 10:26 GMT+01:00 raghu ram : > http://imgur.com/8wtrfO1 > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this

Re: [nhusers] T-SQL query incorrect syntax

2017-04-04 Thread Oskar Berggren
Also, if you need escaping on certain identifiers, you can use the NHibernate escape charater ` (backtick) around the identifiers in mapping. NH will convert to the appropriate dialect-specific escape character for SQL. /Oskar 2017-04-04 19:10 GMT+01:00 Fran Knebels : > have

Re: [nhusers] Avoid Joins or SELECT N+1 problem

2017-03-14 Thread Oskar Berggren
Also, don't forget to look into setting useful batch sizes for classes and collections. In that case you may not need all the fetches. /Oskar 2017-03-14 21:00 GMT+00:00 Gunnar Liljas : > Avoiding the "select n+1" is usually MUCH more important than avoiding > the

Re: [nhusers] Re: Nhibernate Paging Time Bomb

2017-02-24 Thread Oskar Berggren
Hi, Not sure why the talk about "trillions". Sure, that would be a problem too but it there is an int, the limit would be already at a bit more than 2 billion records, of course. I don't see a problem with raising that to a 64-bit integer. Perhaps it should even be unsigned or is there a purpose

Re: [nhusers] Thread safety, potential race conditions with StatefulPersistenceContext collection (v3.3.3.GA)

2017-02-11 Thread Oskar Berggren
Hi, >From the comments on that class: /// There is meant to be a one-to-one correspondence between a SessionImpl and /// a PersistentContext. A SessionImpl is the same as "a session", and sessions are not safe for use from multiple threads concurrently. So I think the first thing for you to

Re: [nhusers] Re: Append dynamic condition to every query issued by nhibernate

2017-02-07 Thread Oskar Berggren
I've done it on a higher level, and based on linq. Instead of starting with session.Query() I start with session.QueryAccessible when I write queries. Collection properties are not filtered when loaded by association in my scenario. 2017-02-07 7:56 GMT+00:00 gg : > > > On

[nhusers] Re: [nhibernate-development] NHibernate 4.1.1.GA released

2017-02-02 Thread Oskar Berggren
Great! 2017-02-02 1:00 GMT+00:00 Alexander Zaytsev : > NHibernate 4.1.1 is now released. > > For a list of resolved issues, see the release notes: > https://github.com/nhibernate/nhibernate-core/blob/4.1.1.GA/ > releasenotes.txt > > Binaries are available on NuGet and

Re: [nhusers] Problems deleting from database (NHibernate 3.3.1.4000)

2017-02-01 Thread Oskar Berggren
Hi, You are barking up the wrong tree. Database files will typically never shrink automatically and immediately just because you SQL DELETE something. Instead, the database engine will typically mark the used space as "available for reuse by the database engine" so that it can eventually be

Re: [nhusers] .NET ICompositeUserType vs IQueryable.Where

2017-01-26 Thread Oskar Berggren
know what timezone exactly is (-08:00 Pacific Time or -08:00 Baja California) you cannot get UTC correctly. On Thursday, 26 January 2017 03:20:31 UTC-7, Oskar Berggren wrote: > No, I believe you are mistaken. > > There is only one UTC. The UTC is never different. It's va

Re: [nhusers] .NET ICompositeUserType vs IQueryable.Where

2017-01-26 Thread Oskar Berggren
Den 26 jan. 2017 2:11 em skrev "Michael Powell" <mwpowell...@gmail.com>: On Thu, Jan 26, 2017 at 5:20 AM, Oskar Berggren <oskar.bergg...@gmail.com> wrote: > No, I believe you are mistaken. > > There is only one UTC. The UTC is never different. It's value

Re: [nhusers] .NET ICompositeUserType vs IQueryable.Where

2017-01-26 Thread Oskar Berggren
e >> in a particular time zone". So with DateTimeOffset you know what that >> particular time is in some unspecified time zone, but you don't know what >> the local time will be a minute later, as the offset for that time zone >> could change (usually due to daylight savi

Re: [nhusers] Re: .NET ICompositeUserType vs IQueryable.Where

2017-01-25 Thread Oskar Berggren
And don't forget, if you store a local time and are affected by DST changes, make sure you can calculate the exact time around when summer time changes back to standard time since it's easy to get into ambigous values here. This would require you to store the offset (in which case you have a

Re: [nhusers] .NET ICompositeUserType vs IQueryable.Where

2017-01-24 Thread Oskar Berggren
By the way, "Instant" sounds closely related to the existing .Net type DateTimeOffset. /Oskar 2017-01-24 19:46 GMT+00:00 Oskar Berggren <oskar.bergg...@gmail.com>: > Comparison operators on multi-column user types aren't very useful. The > behaviour you see will sometimes

Re: [nhusers] .NET ICompositeUserType vs IQueryable.Where

2017-01-24 Thread Oskar Berggren
Comparison operators on multi-column user types aren't very useful. The behaviour you see will sometimes be useful for equaliye operators though. What you are trying to do looks a bit redundant, and I would suggest you avoid storing what is essentially the same value twice, unless you have a very

[nhusers] NHibernate 4.1.0.GA released

2016-12-18 Thread Oskar Berggren
NHibernate 4.1.0 is now released with 105 issues resolved. Approximately 50 different contributors helped with this. For a list of resolved issues, see the release notes: https://github.com/nhibernate/nhibernate-core/blob/4.1.0.GA/releasenotes.txt Binaries are available on NuGet and SourceForge:

[nhusers] Re: [nhibernate-development] Re: NHibernate 4.1.0.CR1 released

2016-12-14 Thread Oskar Berggren
to the release-notes document for the respective tag? /Oskar 2016-12-14 4:23 GMT+00:00 Michael Powell <mwpowell...@gmail.com>: > > > On Monday, December 12, 2016 at 6:47:04 AM UTC-5, Oskar Berggren wrote: >> >> Agreed. >> >> 2016-12-12 6:34 GMT+00:00

[nhusers] Re: [nhibernate-development] Re: NHibernate 4.1.0.CR1 released

2016-12-12 Thread Oskar Berggren
nly available as tags and those require an > additional click to be visible, so many users might miss them. > > > Am Samstag, 26. November 2016 23:38:56 UTC+1 schrieb Oskar Berggren: >> >> NHibernate 4.1.0 Candidate Release 1 is now available for download from >> Sourcefor

[nhusers] NHibernate 4.1.0.CR1 released

2016-11-26 Thread Oskar Berggren
NHibernate 4.1.0 Candidate Release 1 is now available for download from Sourceforge and Nuget. http://sourceforge.net/projects/nhibernate/?source=directory Please test this release to find any regressions before the pending 4.1.0 final release. This contains more than two years of improvements

Re: [nhusers] Hibernate VARCHAR & NVARCHAR Issue

2016-11-25 Thread Oskar Berggren
You should direct your question to a forum concerning Hibernate. This mailing list is for NHibernate, it's not quite the same. /Oskar 2016-11-25 9:13 GMT+00:00 'Ramiz Uddin' via nhusers < nhusers@googlegroups.com>: > I have encountered an issue, I am using SQL SERVER 2012 with Hibernate 4.3 >

Re: [nhusers] How to handle client timeout exception?

2016-11-21 Thread Oskar Berggren
You catch it with the catch statement? How you then handle it it's up to you. Or can you be more specific about what specific issue is problematic? You should dispose the session and transaction if there is an error. In simple cases, just use the using-statement or try-catch-finally. If this

Re: [nhusers] Development plans

2016-11-11 Thread Oskar Berggren
Buildserver is back online. Hopefully there will be a release candidate any day now. /Oskar 2016-11-10 12:02 GMT+00:00 Kai Cissarek <kai.cissa...@gmail.com>: > Hi, > > any news about the server status :) ? > > Am Dienstag, 18. Oktober 2016 21:54:02 UTC+2 schrieb Osk

Re: [nhusers] BUG in NH 4.0?? QueryOver disjunction on Field mapped from Formula throws Object Null Exception

2016-11-07 Thread Oskar Berggren
DriverTech.Execution.MessageProcessor.Process(PagedRequestForJQGrid > pagedRequest, Nullable`1 driverId, Nullable`1 vehicleId, Nullable`1 > viewInboundOnly, Nullable`1 viewReadOnly, Int32& TotalRowCount) in > C:\Projects\DriverTech\WebServices\FWAPI\DriverTech. > Execution\MessageProc

Re: [nhusers] BUG in NH 4.0?? QueryOver disjunction on Field mapped from Formula throws Object Null Exception

2016-11-05 Thread Oskar Berggren
> "Query which *should* be issued to sql server:" So you are saying the the exception occurs BEFORE the query is emitted? Or is the SQL you show exactly what NHibernate produced? I think it would be good if you also deploy the NHibernate.pdb file, so we get line numbers in the stack trace. Also,

Re: [nhusers] Development plans

2016-10-18 Thread Oskar Berggren
We are waiting for the buildserver to come back after hardware failure, hopefully within days. Then the aim is to relase 4.1 more or less immediately. 2016-10-12 7:35 GMT+01:00 Leo Y : > Hello, > > The last version of NH was released in a more than a year ago. What is a >

Re: [nhusers] Re: Why doesn't nHibernate batch to the database on this query.

2016-09-10 Thread Oskar Berggren
MT+02:00 Steve Lyle <ssl...@gmail.com>: > >> On testing (because of what I posted that was prompted by Oskar Berggren, >> thank you Oskar) I recognized my vDoors.hbm.xml file was actually named >> vDoors.xml (without the .hbm.) I move to suggest the nHibernate crew >>

Re: [nhusers] get a session from an ISessionBase

2016-08-10 Thread Oskar Berggren
I have no idea what ISessionBase is. I can't find anything with that name in NH3 or NH4. Is the ISessionBase you have really coming from the NHibernate assembly? If it is, what version? Could it be a locally compiled (and modified) version? /Oskar 2016-08-10 21:50 GMT+01:00 Steve Lyle

Re: [nhusers] NHibernate Entity Cache/Custom Cache?

2016-08-03 Thread Oskar Berggren
If you have an interceptor that runs before your handler, wouldn't that validation take place inside the same session that would later be used for the handler? So if you do the validation by calling ISession.Get(), it would be in the first level cache and no need to worry about the cache part.

Re: [nhusers] Many unit tests failing with fractional second precision exceeds scaled specified. What is the appropriate resolution?

2016-08-03 Thread Oskar Berggren
14:44 GMT+01:00 Oskar Berggren <oskar.bergg...@gmail.com>: > I'm looking into it. > > My take is that if we're using (modern) MSSQL over ODBC we should set > dbParam.Scale = 3 if the DbType is DateTime and nothing else have bee > specified > > For the lack of real bug repo

Re: [nhusers] Many unit tests failing with fractional second precision exceeds scaled specified. What is the appropriate resolution?

2016-08-03 Thread Oskar Berggren
I'm looking into it. My take is that if we're using (modern) MSSQL over ODBC we should set dbParam.Scale = 3 if the DbType is DateTime and nothing else have bee specified For the lack of real bug reports showing issues on other environments, I'm consider doing a somewhat hacky solution. It seems

Re: [nhusers] Moq NHibernate Session for Unit Testing

2016-08-03 Thread Oskar Berggren
Regarding why mocking your GetByProperty() doesn't work it sounds like more of a question for the Moq communit. I don't know it at least. As for mocking the ISession itself I suspect it will lead to much troubles due to too much work required to return the proper things for each query. Besides,

Re: [nhusers] Nhibernate stable production version

2016-08-02 Thread Oskar Berggren
Hi, Have a look at http://nhibernate.info/. Is there any question in particular not answered there? /Oskar 2016-08-02 5:43 GMT+01:00 Kolli Ayyappa : > Hi, > > We are using NH3.3, want to migrate next stable prod Nhibernate version > in-support of SQL-2012 to utilize

[nhusers] Request for help with failing tests on Oracle

2016-08-01 Thread Oskar Berggren
Hi, The NHibernate code base have some failing tests on Oracle. Some have never worked, but some of them _have_ worked before. Help with resolving the ones that used to work is appreciated: http://teamcity.codebetter.com/viewType.html?buildTypeId=bt873 Here is a summary of the test results:

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-31 Thread Oskar Berggren
t; https://github.com/nhibernate/nhibernate-core/pull/487 >> >> On Friday, July 29, 2016 at 2:58:46 PM UTC+1, Oskar Berggren wrote: >>> >>> Start using showbuildmenu.bat. >>> >>> The fix seems small - woulld be great if you could provide a failing >>&

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
Start using showbuildmenu.bat. The fix seems small - woulld be great if you could provide a failing test case as that is required to incorporate the fix. Hopefully you can find something in the test-project that verifies the unwrapping for the case that _does_ work, and add another case there

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
It may very well be that the fastest way to resolve the issue is if you build NH yourself with the required change. Then please also submit the change and a test case. /Oskar 2016-07-29 12:38 GMT+01:00 Mark Perry : > https://nhibernate.jira.com/browse/NH-940 >>

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
The text in NH-3500 hints at this only being an issue if you use lazy properties (not the same as collections) which I suspect are used by few. Does this hold in your case? Apart from that, and this is just a hypothesis, it may also be that few people throw the sort of exceptions you would

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
Relevant: https://nhibernate.jira.com/browse/NH-940 https://nhibernate.jira.com/browse/NH-3500 The presence of the first (resolved) issue above indicates that NH-3500 should probably be regarded as a regression. /Oskar 2016-07-29 12:26 GMT+01:00 Oskar Berggren <oskar.bergg...@gmail.

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
It would be interesting to know what method the older implementation used to avoid the TIE and when the behaviour changed. If it was when a different proxy generator was introduced, or if it happened during some later fix. Could have been by accident. /Oskar 2016-07-29 12:18 GMT+01:00 Oskar

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
You should be able to use an alternative proxy generator to modify the behaviour. 2016-07-29 12:11 GMT+01:00 Mark Perry : > I just double checked my old NH2 .net 4.6 project and that definitely does > NOT wrap my execptions in the System.Reflection one. > > Now I have no

Re: [nhusers] NH4 - Exception being nested inside InnerException

2016-07-29 Thread Oskar Berggren
This is the way System.Reflection operates. .Net 4.5 seem to have gained the ability to unwrap and rethrow the inner exception without losing its context: http://stackoverflow.com/questions/57383/in-c-how-can-i-rethrow-innerexception-without-losing-stack-trace I wonder if NHibernate should

Re: [nhusers] System.InvalidCastException: Specified cast is not valid. Fluent NHibernate and C#

2016-07-18 Thread Oskar Berggren
The exception mentions ShowRoom.Vehicle property setter. Have you followed up what's going on in there? And it's mapping? /Oskar Den 18 juli 2016 5:47 em skrev "Jamie D" : > That's the weird part, the data matches the database values correctly and > mostly everything is

Re: [nhusers] How escape column names?

2016-06-21 Thread Oskar Berggren
I can find the quote character following the > database configured? > > Thank you > > > > On Tue, Jun 21, 2016 at 11:26 AM, Oskar Berggren <oskar.bergg...@gmail.com > > wrote: > >> The NHibernate quote character is the backtick - NH will translate to >>

Re: [nhusers] How escape column names?

2016-06-21 Thread Oskar Berggren
The NHibernate quote character is the backtick - NH will translate to suitable character for DB dialect. 2016-06-21 15:10 GMT+01:00 Felipe Oriani : > Hello guys, > > I've developing a project with NHibernate and Oracle. We have a table > which has a column named Level and

Re: [nhusers] NHibernate 2.1 Paging with Order generates different queries...

2016-05-26 Thread Oskar Berggren
on.ToUpper() == "ASC")) >> .SetFirstResult(pageNumber * pageSize) >> .SetMaxResults(pageSize) >> .Future(); >> >> Please keep in mind that we're still using NH2.1 >> >> On Thursday, May 26, 2016 at 11:20:04 AM UTC+2, Oskar Berggren wrote: >

Re: [nhusers] NHibernate 2.1 Paging with Order generates different queries...

2016-05-26 Thread Oskar Berggren
Hmm... it sound like you are using paging while failing to specify a stable ordering. This is doomed to be unreliable. For stable paging you should apply an order clause that includes at least one unique column. /Oskar Den 25 maj 2016 1:39 em skrev "Gunnar Liljas" : >

Re: [nhusers] SQL Server 2014 Dialect

2016-05-02 Thread Oskar Berggren
I suspect any of the existing MS SQL Server dialects work. The more important question is if there is any particular feature of the 2014 dialect that you are looking for? /Oskar 2016-05-02 19:24 GMT+01:00 Oskar Berggren <oskar.bergg...@gmail.com>: > Yes it does. > > 2016-05-02

Re: [nhusers] SQL Server 2014 Dialect

2016-05-02 Thread Oskar Berggren
Yes it does. 2016-05-02 18:24 GMT+01:00 Rafael Wolf : > NHibertnate doesn't have the 2014 dialect for sql server. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails

Re: [nhusers] NHIBERNATE.StaleObject Exception.

2016-04-28 Thread Oskar Berggren
points and try to reproduce by updating the > same object multiple times! > > On Wednesday, April 27, 2016 at 12:12:52 PM UTC-5, Oskar Berggren wrote: >> >> The posted code might not be very relevant to figuring out the problem.f >> >> StaleObjectstateExcepti

Re: [nhusers] Memory leak

2016-04-19 Thread Oskar Berggren
Hmm. I think WinDbg can be used with the right incantations to find any references to the lingering session objects. Not sure exactly how. Note that any objects loaded through the session are likely to contain references to the session even after the session is closed. /Oskar 2016-04-19 15:40

Re: [nhusers] NHibernate translates >= into GE and throws GenericADOException on object with custom operators

2016-04-19 Thread Oskar Berggren
2016-04-19 9:52 GMT+01:00 Erik H : > So I just did a test... > > An equals operator in the where statement *does* work! > > .Where(ai => ai.AsapVerwerkingsPeriode* == *periodeVanaf >> && ai.AsapVerwerkingsPeriode* == *periodeTm && ( //niet geblokkeerde

Re: [nhusers] NHibernate translates >= into GE and throws GenericADOException on object with custom operators

2016-04-18 Thread Oskar Berggren
2016-04-18 12:41 GMT+01:00 Erik H : > > public static bool operator >=(JaarEnMaand jaarEnMaand1, >> JaarEnMaand jaarEnMaand2) >> { >> if (jaarEnMaand1.Jaar == jaarEnMaand2.Jaar) >> { >> return (jaarEnMaand1.Maand >=

Re: [nhusers] NHibernate translates >= into GE and throws GenericADOException on object with custom operators

2016-04-18 Thread Oskar Berggren
I didn't put them all in this post. Implemented operators: > ==, !=, >, >=, <, <=, +, - > > Are there any options you see that I can do to get it back working? > > > On Monday, April 18, 2016 at 11:55:29 AM UTC+2, Oskar Berggren wrote: >> >> I don't think these o

Re: [nhusers] Re: Updating nhibernate from 2.1.2.4000 to 4.0.0.4000(with Target .Net FW 3.5)

2016-04-06 Thread Oskar Berggren
2016-04-06 12:31 GMT+01:00 Евгений Виноградный : > > > > NH 3.3.3.4001 last NH for .net 3.5. > Sorry, but this is a bit misleading. As I wrote, starting with NH4, it's required to be on .Net 4. I meant that it also follows that any (non-ancient) version _less_ than NH4

Re: [nhusers] Updating nhibernate from 2.1.2.4000 to 4.0.0.4000(with Target .Net FW 3.5)

2016-04-05 Thread Oskar Berggren
>From NH4 .Net 4 is required. /Oskar 2016-04-05 15:49 GMT+01:00 Shubham Srivastava < shubhamsrivastava...@gmail.com>: > Hi Team Nhibernate, > > Actually, I want to update old 'nhibernate' version used in my ASP .Net > project to its latest stable version i.e. 4.0.0.4000. > However, in this

Re: [nhusers] upgrade from version 2

2016-03-21 Thread Oskar Berggren
Try the release notes, if you haven't already: https://github.com/nhibernate/nhibernate-core/blob/master/releasenotes.txt /Oskar 2016-03-21 15:48 GMT+00:00 John Daues : > We have a legacy application (Windows SmartClient) that currently uses > nHiberate 2.2. We are

Re: [nhusers] Re: Unwrapping decorators in NHibernate

2016-03-08 Thread Oskar Berggren
NHibernate has a lot of proxying going on. Have you investigated if you can hook up this with a custom proxy generator? /Oskar 2016-03-08 10:52 GMT+00:00 Felix Berlakovich : > Some additions: > * a colleague pointed out that the stuff I am talking about are actually >

Re: [nhusers] Re: log4net not logging in SPA site .Net 4.5.2

2016-03-04 Thread Oskar Berggren
2016-03-03 19:22 GMT+00:00 Steve Lyle : > Oh. And this too. > In Web.config change ** to * debug="true">* > Maybe you know this already, but just in case, that flag is for debugging log4net itself and should normally be false in production code. It does not affect

Re: [nhusers] Re: Cat.hbm.xml error Could not compile the mapping document"

2016-03-04 Thread Oskar Berggren
2016-03-03 20:55 GMT+00:00 Steve Lyle : > I don't know what the challenge is but I would like to think the top level > exception message could be: >"can't find your file (probably because of a typo in ...)" fix that then >"can't find the assembly (probably because of a

Re: [nhusers] log4net not logging in SPA site .Net 4.5.2

2016-03-03 Thread Oskar Berggren
The BasicConfigurator.Configure() will only log to Console, which can of course be tricky in a web project. See https://logging.apache.org/log4net/release/sdk/index.html and the other log4net documentation at https://logging.apache.org/log4net/release/manual/introduction.html I would put the

Re: [nhusers] Re: Cat.hbm.xml error Could not compile the mapping document"

2016-03-03 Thread Oskar Berggren
2016-03-03 4:25 GMT+00:00 Steve Lyle : > A) What error do you get when there is a typo in the XML mapping file's > class-tab name-attribute value and you are using AddFile()? >In other words when the name-attribute value != the name of the class > in the class.cs file. >

Re: [nhusers] Commit() rollsback successful inserts

2016-03-02 Thread Oskar Berggren
fferent nuances > of all the very many DBMS. > It is. /Oskar > > > > > On Tuesday, March 1, 2016 at 7:59:41 PM UTC-5, Oskar Berggren wrote: >> >> >> >> 2016-03-01 18:49 GMT+00:00 Steve Lyle <ssl...@gmail.com>: >> >>> The

Re: [nhusers] Re: Cat.hbm.xml error Could not compile the mapping document"

2016-03-02 Thread Oskar Berggren
2016-03-02 15:14 GMT+00:00 Steve Lyle : > Your thoughts on this. > As soon as I installed and configured log4net ~ *my problem with > AddFile() when away*. > > It's very likely to be just coincidence, but we will never know because we never got to see the text from the

Re: [nhusers] Re: Cat.hbm.xml error Could not compile the mapping document"

2016-03-02 Thread Oskar Berggren
2016-03-02 13:29 GMT+00:00 Steve Lyle : > > Gunnar! Again, I've given you *everything *nHibernate reports on the > error. Do you need a live, real-time, firsthand demo? > You know this. Like anything else nHibernate code, at execution, runs > into a problem, catches it, and

Re: [nhusers] Commit() rollsback successful inserts

2016-03-01 Thread Oskar Berggren
2016-03-01 18:49 GMT+00:00 Steve Lyle : > The following > txn = ses.BeginTransaction(); //) > ses.Save(employee); > txn.Commit(); > > throws > IsolationLevel = >

Re: [nhusers] Cat.hbm.xml error Could not compile the mapping document"

2016-03-01 Thread Oskar Berggren
2016-03-01 15:49 GMT+00:00 Steve Lyle : > This line of code: > cfg.AddFile(@"C:\Users\slyle\Documents\Visual Studio > 2015\Projects\Cat\Cat\Models\Cat.hbm.xml"); > > Throws this error: > An exception of type 'NHibernate.MappingException' occurred in >

Re: [nhusers] Re: Project assembly name -v- configuration assembly attribute -v- model assembly attribute

2016-03-01 Thread Oskar Berggren
2016-03-01 13:42 GMT+00:00 Steve Lyle : > Thee are the full details of the exception: > Exception thrown: 'NHibernate.MappingException' in NHibernate.dll > No, it isn't. All exceptions contains a Message, a StackTrace, and any number of InnerExceptions recursively. The

Re: [nhusers] Combine / Merge IQueryable or converting Queryover to IQueryable

2016-03-01 Thread Oskar Berggren
.Id).Contains(p.Id)); > var combinedIQueryable = allUserNotes.Where(predicate); > > will always evaluate to true > > 2016-03-01 18:06 GMT+01:00 Oskar Berggren <oskar.bergg...@gmail.com>: > >> He means the AND versus OR immediately after "b.Value = 20" - since the >&g

Re: [nhusers] Combine / Merge IQueryable or converting Queryover to IQueryable

2016-03-01 Thread Oskar Berggren
ry, I forgot one thing to mention. >>>> In the part of code where I need to combine the IQueryable I have got >>>> some external objects in a list which provide methods which return the >>>> IQueryable to combine. >>>> So I have s.th. like this: >>

Re: [nhusers] Project assembly name -v- configuration assembly attribute -v- model assembly attribute

2016-02-29 Thread Oskar Berggren
2016-02-29 20:51 GMT+00:00 Steve Lyle : > [...] > > Remember the project property is only applicable in when I run the > application in VStudio. > BUT the behavior even if I play with this in the command line. > So the application is getting compiled into the executable the

Re: [nhusers] Combine / Merge IQueryable or converting Queryover to IQueryable

2016-02-26 Thread Oskar Berggren
var q1 = from p in Person where whatever select p.id; var q2 = from p in Person where whatever select p.id; var qC = from p in Person where q1.Contains(p.id) || q2.Contains(p.id) select p; q1 and q2 will be used as

  1   2   3   4   5   6   7   8   >