Generally, yes, ID of your Employee must be the same as the ID of the Person you are extending.
There is a problem, though: from the database prospective your object will be partially new and partially existing. Its "person" part already exists, while its "employee" part doesn't. I afraid in this case neither ISession.Save, nor ISession.Update could work correctly. Perhaps you will need to create record in tblEmployee table by hands and then Update the object.
_________________ Best,
Andrew Mayorov // BYTE-force
|