Skip to content

Instantly share code, notes, and snippets.

View xhafan's full-sized avatar
🤠

Martin Havlišta xhafan

🤠
View GitHub Profile
@bariloce
bariloce / Blobbed.cs
Last active March 5, 2024 21:29
NHibernate, Fluent.NHibernate and PostgreSql: How to map PostgreSql Json type using Fluent.NHibernate
[Serializable]
public class Blobbed<T> : IUserType where T : class
{
public new bool Equals(object x, object y)
{
if (x == null && y == null)
return true;
if (x == null || y == null)
return false;