Primary Key Names in Free Neubernath

Is there a way in Fluent NHibernate (or perhaps NHibernate in general) to tell it to generate primary keys in different ways? It creates a column name for the key penalty, but the index / constraint gets weird generated names, such as:

PK__Address__3214EC2725332734

PK__CreditCa__3214EC2756CA82C8

and etc.

I can use direct SQL to rename them, but I would prefer not to.

+3
source share
2 answers

This is a similar question:

Free NHibernate Primary Key Constraint Naming Conventions

This is not possible, because NHibernate alone does not support it.

(I was injured to find out).

+9
source

Source: https://habr.com/ru/post/1740493/


All Articles