how to get the table primary key after saving an item via AdoNetServiceProxy
- by Jronny
I have a js proxy class:
function ProxyClass() {
this.Properties = null;
this.Insert = function () {
try {
var service = new Sys.Data.AdoNetServiceProxy("/WcfDataService1.svc");
service.insert(this, "TheTable");
} catch (ex) {
alert("error: " + ex);
}
};
}
The insert has been working, but I need to get the primary key of TheTable right after. How could we be able to pull it up? Thanks a lot