Created
November 5, 2020 22:58
-
-
Save osnipezzini/9153b9dc53a7af8433108f3b4dad17d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//select d.empresa, p.grid as produto, d.grid as deposito, d.codigo as deposito_codigo, d.nome as deposito_nome, preco_unit_empresa_f(p.grid, d.empresa) as preco_unit, p.controlar_estoque from deposito d join deposito_grupo_produto dg on (d.grid=dg.deposito) join produto p on (dg.grupo=p.grupo) where p.grid='6655381' and d.empresa='1778116888046'" | |
var produto = await (from d in _context.Deposito | |
join dgp in _context.DepositoGrupoProduto on d.Grid equals dgp.Deposito | |
join p in _context.Produto on dgp.Grupo equals p.Grupo | |
where p.CodigoBarra == code && d.Empresa == empresa | |
select new | |
{ | |
deposito_empresa = d.Empresa, | |
produto = p.Grid, | |
deposito = d.Grid, | |
deposito_codigo = d.Codigo, | |
deposito_nome = d.Nome | |
}) | |
.FirstOrDefaultAsync(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment