Questions tagged as 'c#'

1
answer

Pulling the last information from a table [closed]

I wanted to know how to pull the last information that was registered in the bank, but I can not use the ID. In my Route table you have the columns Id (PK), Date, Current_Malue, Combustivel and NVeiculoId (CK). In this table I need to get...
asked by 03.07.2017 / 21:31
0
answers

I can not make a reference to a project

Hello, I have a solution in MVC divided into 4 projects: Model, Persistence, Contoller and View Persistence has a reference to Model Controller has 2 references for Model and Persistence I'm trying to put a reference to View for Control...
asked by 01.07.2017 / 21:34
1
answer

Doubts with XML Mapping

I have a XML file as below and I have some questions about how to map it to deserialize. I'm using C# . <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ListaDeclaracoes> <declaracaoImportacao>...
asked by 10.07.2017 / 15:30
0
answers

How to save on a relative path?

I have the following method: private string SubirImagem(string imagemupload, string sequencia, string clifor) { HttpPostedFile imagem = Request.Files[imagemupload]; string nomeimagem = ""; if (imagem != null && imagem.Cont...
asked by 10.07.2017 / 16:38
0
answers

Pass lambda expression to another class run C #

Can you pass a lambda expression to a class, and then run it? Something like code below. This is giving error in the select new expression    Error: Error 1 Can not implicitly convert type 'System.Linq.IQueryable' to 'System.Linq.Expressio...
asked by 09.07.2017 / 18:50
0
answers

Calculate values in unfilled spaces in Form

Good afternoon! I'm hesitant to implement an algorithm that can calculate the heat flow based on the formulas: q = ΔT / Rt ΔT = Initial temperature-Final temperature Rt (thermal resistance) = L (Thickness) / K (retentivity) * A (area-m²...
asked by 25.06.2017 / 19:23
1
answer

DropDownList The Name '' does not exist in the current context

I have a gridview that lists the countries and depending on the selected list the cities of that country. <asp:GridView ID="gvRentalVendor" runat="server" AutoGenerateColumns="false" DataKeyNames="RetalAgency_Id" Width="824px" OnRowDataBoun...
asked by 11.07.2017 / 06:22
0
answers

How can I get information from a datagridview to use in another form [duplicate]

I'm doing a program in C # and I have a datagridview in Form1 and I have another datagridview in Form2 . How can I get the selected cell from the datagridview that is in Form1 and use it as variable in Form2 or I wan...
asked by 31.08.2017 / 17:15
0
answers

I need to get and display a list of client objects by Id

My CLIENTEBUS CLASS class ClienteBus:AplicacaoBus<Cliente> { public ClienteBus() { Tabela = new List<Cliente>(); } } MY CLIENT CLASS class Cliente:Entity { private static int _Id; public Client...
asked by 06.07.2017 / 17:04
1
answer

Error: Could not process type 'xxx []' because it does not have any known mappings at the value layer

In the controller I have my session built. public const string ListaPermissao_SessionName = "ListaPermissao"; private List<ListaPermissao> ListaPermissaoEnvio { get { if (Session[ListaPermissao_SessionName] == null)...
asked by 06.07.2017 / 16:34