Skip to main content
2 votes
0 answers
41 views

How to map a collection of e-mail addresses as ICollection<EmailAddress> instead of ICollection<string> using FluentNhibernate?

I've wasted countless hours of my life chasing bone-headed bugs caused by forgetting that e-mail addresses are case-insensitive. It's a simple thing, but one I repeatedly forget about, so I decided to ...
Greg Burghardt's user avatar
0 votes
1 answer
25 views

Version element Nhibernate element Fluent Mapping

I have a requirement which is version control for nhibernate hbm.xml file goes like the below (See refences) <?xml version="1.0" encoding="utf-8"?> <hibernate-mapping namespace="Model" ...
Edison C's user avatar
0 votes
0 answers
16 views

Nhibernate reduce number of queries retrieving nested collections

I'm new to nhibernate and spent multiple hours reading articles and posible solutions to this without luck. My problem seems the N+1 problem but I'm no longer sure about it. I'm using Nhibernate + ...
radykal's user avatar
  • 133
1 vote
0 answers
104 views

Nhibernate: Cannot visit a constant without a constant to parameter map

I got this entity for friendlists: public class Friendship : IEntity { /// <summary> /// Gets or sets the usr a. /// </summary> /// <value> /// The usr a. ...
Malte's user avatar
  • 50
0 votes
0 answers
93 views

Handling TimeSpan type conversion issue in .NET 8 with Fluent NHibernate after migrating from .NET Framework

Can someone help me? I'm encountering an issue with the TimeSpan datatype in .NET 8 using FluentNHibernate.Mapping. To summarize, my project was initially on .NET Framework 4, and I recently migrated ...
João Torres's user avatar
0 votes
0 answers
51 views

NHibernate Many-to-many Filter Stopped Working After 5.2 Update

I encountered a problem when I try to update from 5.1.7 to 5.2.0 using System; using System.Collections; using System.Collections.Generic; using FluentNHibernate.Cfg; using FluentNHibernate.Cfg.Db; ...
Sahin's user avatar
  • 1,464
0 votes
0 answers
39 views

NHibernate MismatchedTokenException

I have an HQL query that, every time I run it, throws Antlr.Runtime.MismatchedTokenException: 'A recognition error occurred.'. So far as I can tell, this is because I'm trying to use an entity ...
Tam Coton's user avatar
  • 874
1 vote
1 answer
65 views

How to replicate SQL queries generated by the ORM nHibernate?

In a C# application, using nHibernate & fluent nHibernate, we're looking to capture certain INSERT, UPDATE, DELETE queries performed on a Sqlite database in order to replicate them. We'd like to ...
pp-mluthi's user avatar
0 votes
1 answer
51 views

C# Nhibernate | PL/SQL Oracle - different length of string when it contains diacritical marks

I have example string, which I'm trying to put as value in VARCHAR(255) column (in oracle database) using nhibernate ISession object. abssssssssssssssssssssssssd ...
DawDiag's user avatar
  • 13
0 votes
0 answers
50 views

Manipulation of queries with NHibernate and FluentNHibernate of older versions on .Net Framework 4.5.1

I am working on an old project and we need to make some adjustments. It is on .Net 4.5.1 with NHibernate 3.1.0.4000 and FluentNHibernate 1.2.0.0. I haven't considered the option to update them yet ...
Φωτεινή Βέρδου's user avatar
0 votes
1 answer
38 views

FluentNHibernate: CamelCaseField vs ReadOnlyPropertyThroughCamelCaseField

Given the following class: public class User { private IList<ActivationToken> _activationTokens; public virtual IReadOnlyList<ActivationToken> ActivationTokens => _activationTokens....
speednick's user avatar
0 votes
1 answer
43 views

NHibernate Partition By with Over Clause

Does NHibernate support SQL partition by with over using RANK() or ROW_Number() Please advise how to write NHibernate query over for below . SELECT this_.ORDERNUMBER ,ROW_NUMBER () OVER ( ...
Manjusha's user avatar
0 votes
1 answer
52 views

What is the Use of Inverse() in Nhibernate

In my project i see the below code where is Inverse() is used I want to understand what is use of it and parent child relationship works with and without inverse public CityMap() { Table("...
Abxxx0's user avatar
  • 3
0 votes
0 answers
23 views

Fluent NHibernate multiple tables with shared data models

I work with a database with several practically identical tables. For illustrative purposes they look like this: CREATE TABLE MyTable ( Id INT NOT NULL, Title VARCHAR(255) NOT NULL ) INSERT ...
TheHvidsten's user avatar
  • 4,520
0 votes
1 answer
482 views

GlobalType mapping in Fluent Nhibernate and npgsql

I'm migrating my project to use newest Npgsql library (v 8.0.2). I used this construction to map C# type to the Postgres type: var nameTranslator = new NpgsqlSnakeCaseNameTranslator();; ...
xurc's user avatar
  • 109

15 30 50 per page
1
2 3 4 5
367