ID is empty when adding new employee
ID is empty when adding new employee
truck7561
Posts: 3Questions: 2Answers: 0
I am using NET Framework C#. When adding new employee the ID is empty after submission. All other data shows up but I need the unique identifier. How do I pass a unique identifier to the ID? I don't see anyplace to put a sql statement and I don't see any on the examples.
Thanks!
Answers
Your scenario is not very clear. Are you using the Editor? If not, how are you doing updates?
Ordinarily a unique identifier would mean an auto-increment field in the database.
Which examples are you using?
tangerine,
Thanks that is what I was think. I am going to have to do some work on the database.
Yes, Editor largely assumes that you will be using an auto-incrementing serial for the table's primary key. It is possible to submit a value, such as for stock keeping where each item will need a unique id anyway, but I'd typically just use a serial column and a unique column for that.
Allan