Duvida com Insert Usando Dapper Contrib #44
-
Estou mexendo bastante do Dapper contrib e meu último teste estou tentado fazer um Insert utilizando Repositório Genérico. Quando tento fazer um Insert Onde o [Id] é gerado e passado pela aplicação ele da o seguinte erro: O que estou entendendo que o Insert do Contrib não carrega o [Id] informado na criação do objeto, é isso mesmo? Var local = new Local |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Bom dia @jucelinopinheiro pode compartilhar um trecho do código que executa a inserção? Acredito que assim podemos entender melhor o que está acontecendo. |
Beta Was this translation helpful? Give feedback.
-
-- Banco de Dados Tabela Locais
) //Model Local //aqui é onde acontece o erro, pois no banco para essa tabela não usei o Id IDENTITY(1,1), gostaria de gerar pela aplicação. public static class TelaLocais
} |
Beta Was this translation helpful? Give feedback.
Bom dia @jucelinopinheiro pode compartilhar um trecho do código que executa a inserção? Acredito que assim podemos entender melhor o que está acontecendo.