Posts by Dacassussua • 61 points
6 posts
-
0
votes2
answers104
viewsA: take json data in url and play inside a textbox in c#
boa Fernando use the Javascriptserializer class to downgrade Json. try like this: //GetResultViewModel é a class onde fica encapsulado os atributos do teu json GetResultViewModel obj = new…
-
2
votes2
answers531
viewsA: how to call stored Procedure with Linq
Good afternoon guys. I already solved the problem. for those who have the same doubt there goes the solution: public List<SP_Comb> ListByCliente(int parametro1, string parametro2) {…
-
0
votes2
answers531
viewsQ: how to call stored Procedure with Linq
Good morning, everyone. I have a stored procedure in the sql server, and I would like to call you on my application c#, via linq. Since now I appreciate any help…
-
0
votes4
answers156
viewsA: How to avoid repetition in LINQ queries?
Place a DISCTINT() at the end of select be more or less like this: var query = from p in Produtos where p.Descricao.StartsWith(descricao) select new Produto { ProdutoId = p.ProdutoId, Descricao =…
-
2
votes1
answer90
viewsQ: How to call Linq method in View?
Good morning, everyone. my question is this, I have the following method in my model: public IQueryable GetConsulta() { var q = (from c in Datacontext.Tabela1 join b in Datacontext.Tabela2 on…
-
1
votes1
answer875
viewsA: Linq - Relationship with 3 tables
var q = (from c in Datacontext.Tbcolecao join b in Datacontext.Tbvolume on c.ColecaoId equals b.ColecaoId join d in Datacontext.tbautor on b.volumeId equals d.volumeId where…