Posts by Alysson Bormann • 323 points
11 posts
-
1
votes1
answer410
viewsQ: Using the Reportview
I’d like some help. I’m using the ReportView to generate a report from id passed as parameter: public ActionResult Relatorio(Guid id) { LocalReport relatorio = new LocalReport(); //Caminho onde o…
-
4
votes2
answers97
viewsQ: How to bring an item list
I need to bring up a list of ITEMS, with only the Order id. The way I do it is this, but it brings me only one Item, I want to be able to bring all the items I have, with the Order ID. var…
-
4
votes1
answer469
viewsQ: How to save in 2 tables at the same time
Hello, I would like a help. I have this method to save the data in two tables. public void SalvarLocacao(Carrinho carrinho, Locacao locacao) { Item items = new Item(); foreach (var item in…
-
-1
votes1
answer964
viewsQ: Relationship of two tables MVC C#
How can I make a Lambda query, I have two Permission and Employee tables, where to inform the email of the Employee, he brings me the Employee’s permissions, through the email that I informed. In…
-
1
votes2
answers823
viewsQ: How to create a FOREIGN KEY using uniqueidentifier in SQL Server
Hi, I’d like a hand. I have a table on SQL Customer call, which has as primary key a type uniqueidentifier Ex: Create table Cliente ( ClienteID uniqueidentifier not null, Nome varchar(50) ) I’d like…
-
0
votes1
answer48
viewsQ: Error doing a Return in windows form c#
Could someone give me a hand, please, I’d like to know what I’m doing wrong so this giving this error at the time of return. I want to show on Grid these fields: SubCategoriaId, SubCategoriaNome,…
-
1
votes4
answers1102
viewsA: How to show data from 2 tables in a grid?
@Guilherme J Santos understood very well the method you passed, but you are giving error in return minhaQuery.ToList<ResultadoCategSubCategoriaGrid>();…
-
4
votes4
answers1102
viewsQ: How to show data from 2 tables in a grid?
I am developing an application using Windows Forms and I wanted to be able to show the data of 2 tables in a gGrid, by SQL command I can do this SELECT SU.SUBCATEGORIAID, SU.NOME, SU.CATEGORIAID,…
-
4
votes2
answers849
viewsQ: Best way to make class relationship
Hello, I would like to know what is the correct way to make relationship between classes of 1.. N and 1...1. Example: public class Pedido { public int PedidoID{get;set;} ............. } public class…
-
1
votes1
answer75
viewsQ: How to use 4 model in a view
Hi, I’m 4 class Cliente, Locacao, Item and Cacamba: public class Cliente { public Guid ClienteID { get; set; } public string Nome { get; set; } ............... } public class Locacao { public Guid…
-
1
votes2
answers258
viewsQ: How to compare with Guid Mvc
Hello, I would like to make this comparison using a Guid, public Guid ClienteID {get;set;}. This code works using a int, I make a if, if my ClienteID == 0 I save, and if it doesn’t equal 0 I change.…