Work with Fluent NHibernate and Basic Identifiers

We are working with Fluent NHibernate 1.2, and our primary key is the director stored in the nvarchar (32) column , working with Oracle 11gr2.

How can we do this? (automatic conversion ...)

Thanks, random programmer ...

UPDATE: forgot to mention, the manual is saved WITHOUT a dash ...

+5
source share
1 answer

Update:

You will need to implement your own IUserType to handle endless guides.
You can read about it here:
http://dotnet.dzone.com/articles/understanding-nhibernate-type

, , .

""

Id Guid:

public virtual Guid Id { get; private set; }

ClassMap :

Id(x => x.Id)
  .Column("Id")
  .GeneratedBy.GuidComb();

.

Id(x => x.Id)
  .Column("Id")
  .GeneratedBy.Guid();

System.Guid

Id(x => x.Id)
  .Column("Id")
  .GeneratedBy.GuidNative();

, Guid .

+6

All Articles