public int GetAutoId(int srcid) { var ta = new AUTONOSTableAdapter {Connection = {ConnectionString = _constr}}; var ds = new DsInventory(); ta.FillBy(ds.AUTONOS, srcid); return int.Parse(ds.AUTONOS[0][1].ToString()); }
public void UpdateAutoNum(int srcid) { var ta = new AUTONOSTableAdapter {Connection = {ConnectionString = _constr}}; ta.UpdateQuery(srcid); }