예제 #1
0
        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);
        }
예제 #2
0
 public GAUTOINC ObterAutoincremento(short codColigada, string CodAutoInc)
 {
     return(_autoIncrementoRepository.Get(a => a.CODCOLIGADA == codColigada && a.CODAUTOINC == CodAutoInc).FirstOrDefault());
 }