Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Amaël BERTEAU
Software Craftsman & Maker

Main navigation

  • Home
  • News
  • Software Engineering
  • Maker
  • Entrepreneuriat
  • Misc
  • Personal Projects
    • Bio
    • Curriculum Vitae
    • Skills
    • Likes
    • My Values
    • Quotes
    • Favorite Books
    • Favorite Tools

NHibernate

Breadcrumb

  • Home
  • NHibernate

Store Guid as BINARY(16) in MySQL with NHibernate

By aberteau | 7:34 PM CET, Wed November 11, 2020

Why use BINARY type to store a GUID ?

GUID is a 128-bit (16 bytes) integer number. 

In its canonical textual representation, GUID are represented as 32 hexadecimal digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens).

For example: 79d266c1-ca54-4bc9-9b0e-4a988fa1b1dc

MySQL
NHibernate
.Net
  • Read more about Store Guid as BINARY(16) in MySQL with NHibernate

Setting a base entity class to use with your favorite ORM

By aberteau | 12:10 AM CEST, Fri July 28, 2017
Source code of a base entity class to use with your favorite ORM like NHibernate or Entity Framework
NHibernate
Entity Framework
  • Read more about Setting a base entity class to use with your favorite ORM

Handle MySQL data types with NHibernate mapping by code

By aberteau | 2:14 AM CEST, Sat July 22, 2017
Some extension methods to handle MySQL data types with NHibernate mapping by code
NHibernate
MySQL
.Net
  • Read more about Handle MySQL data types with NHibernate mapping by code

Improve NHibernate QueryOver with Restrictions and ICriterion

By aberteau | 10:39 PM CEST, Fri July 21, 2017
You will discover one of the techniques to centralize and produce more comprehensive code around NHibernate QueryOver.
NHibernate
QueryOver
.Net
  • Read more about Improve NHibernate QueryOver with Restrictions and ICriterion

Improve NHibernate QueryOver with extension methods

By aberteau | 9:56 PM CEST, Fri July 21, 2017
You will discover one of the techniques to centralize and produce more comprehensive code around NHibernate QueryOver.
NHibernate
QueryOver
.Net
  • Read more about Improve NHibernate QueryOver with extension methods
Subscribe to NHibernate

Footer menu

  • Contact

Copyright © 2026 Amael BERTEAU - All rights reserved