How to specify an auto-incrementing (int) identity column using Fluent-NHibernate and MySQL?

When Fluent-Nbernate generates the schema, it auto generates the column with a datatype of int(11) with auto-increment. There's no default value, but setting one didn't make a difference. – Adam Oct 23 '10 at 12:58 Argh... Web.

Config was using an old connection string where an older version of the database resided. After correcting that... "Id(x => x. ID).GeneratedBy.Identity();" worked with no problems.

– Adam Oct 23 '10 at 14:10.

I'm using public class User { public virtual int Id { get; set; } public virtual IList Names { get; set; } public virtual IList Addresses { get; set; } } and mapping as Increment and works for me. Id(x => x. Id).GeneratedBy.Increment().

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions