public void AtualizarValorAutoIncremento(short codColigada, string CodAutoInc, int valor) { GAUTOINC autoInc = Repository.Get($"SELECT * FROM GAUTOINC WHERE CODCOLIGADA = {codColigada} AND CODAUTOINC = '{CodAutoInc}'").FirstOrDefault(); autoInc.VALAUTOINC += valor; base.Update(autoInc); }
public GAUTOINC ObterAutoincremento(short codColigada, string CodAutoInc) { return(_autoIncrementoRepository.Get(a => a.CODCOLIGADA == codColigada && a.CODAUTOINC == CodAutoInc).FirstOrDefault()); }