I have a problem. When I try to insert an object with the type book to the DB, It should add the author also to the authors table if it doesnt exist. Instead I get an error 'unsaved object' and the object has not been saved. whats the problem?
the code:
Book:
Id(x => x.ID);
Map(x => x.Title);
References(x => x.Author)
.Not.LazyLoad()
.Column("Author_id");
Author:
Id(x => x.ID);
Map(x => x.FullName);