5,495 questions
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 ...
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" ...
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 + ...
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.
...
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 ...
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;
...
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 ...
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 ...
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 ...
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 ...
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....
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 ( ...
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("...
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 ...
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();;
...