在EntityFramework中,怎么取得最后一次插入的标识列的值

2025-05-07 02:17:45
推荐回答(1个)
回答1:

}
public int getBalance() {
return balance;
}
void add(){
int newbalance=balance+1000;
try {
Thread.sleep(1);
} catch (InterruptedException e) {

e.printStackTrace();
}
balance=newbalance;
}

}