1:1 associations are supported only between the primary keys of both entities. Which means you should not use a special FK property in your mapping but the identity property of Class2.
Also you should decide which is the "main" class of both, this should be the one which you create first and then assign the other. Only this main class should be mapped with .IsIdentity(KeyGenerator.Autoinc);
the other class should specify only its primary key with this mapping: .IsIdentity()
but do not specify a key generator as the value will be taken from the main class which is stored previous. It is not allowed both to autoinc.
I hope this helps, should you have any other questions do not hesitate go get back to us.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map