Skip to content

Chapter 26: Best Practices, error about identifier recommendations #2421

Closed
@janv8000

Description

@janv8000

Chapter 26 mentions the following:

Declare identifier properties on persistent classes.

NHibernate makes identifier properties optional. There are all sorts of reasons why you should use them. We recommend that identifiers be 'synthetic' (generated, with no business meaning) and of a non-primitive type. For maximum flexibility, use Int64 or String.

Aren't Int64 and String etc... primitive types (or in the case of String to be considered primitive)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions