views:

23

answers:

1

Hi, I will have a table with more than 7 billion rows so I need log for primary key. How to specify the HiLo to use In64 instead of int?

Thanks

A: 

type="int64" or just declare your Id property as long and NH will pick it up.

Diego Mijelshon
Yep, this does not work in SQL Lite. It created integer pk field
Luka
Check http://www.sqlite.org/datatype3.html. "INTEGER" can be up to 8 bytes (64 bits) depending on the value, so you're fine.
Diego Mijelshon