Questions tagged as 'c#'

1
answer

How can I not serialize some attributes in RESTful (C # + WCF + JSON) calls?

In the example below, how do I not serialize an attribute. I think I'm looking for the equivalent of the java syntax: For classes: @JsonIgnoreProperties (ignoreUnknown = true); For attributes: @JsonIgnore for attribute. public class Some...
asked by 16.09.2014 / 17:01
1
answer

How to use "Not Exists" in LINQ?

I'm trying to translate the query below into LINQ, but without success, can anyone help me? SELECT * FROM PESSOAL A WHERE NOT EXISTS ( SELECT Chapa FROM PRODUCAO B WHERE B.Chapa = A.Chapa AND B.Data='2014-09-02') AND A.Codsubord='CB...
asked by 10.09.2014 / 16:22
1
answer

Map associative tables in Entity

This has already happened. When I use an associative table in Entity, these tables generally do not have PK. When this occurs, I can not map them. How can I map this type of table?     
asked by 15.08.2014 / 14:46
2
answers

OrderBy lambda keeps changing with every search

I have a lambda search, which refers to information in a grid, but with each different query it changes the place information: Indicadores = (Pegatodos().Where(f => f.STATUS == "A") .Select(x => new { S...
asked by 31.07.2014 / 19:24
3
answers

Error while running my MVC application

This is the error: Linha 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Util.MvcApplication" Language="C#" %> I had created another project called Util and started to give this problem. What I did, I removed the project...
asked by 15.08.2014 / 15:59
1
answer

Include ZERO before the numbers in CSV file?

I need to include ZERO to complete the CPF digits in the csv file, but if the CPF starts with ZERO it is taken and the numbers are only, that is, it has cpf that only saves 9 digits, since the first two do not enter account ... public string C...
asked by 05.08.2014 / 22:28
2
answers

Devexpress spin - culture info

I'm using the spinedit of devexpress, with MVC, it's a decimal field, but I need the punctuation of the number to be a period and not a comma, I need to put his culture as "en-US", how to do it? / p>     
asked by 11.08.2014 / 15:01
1
answer

Disable asp: Button after being clicked

Project in: WebForm, C #, ASP.net I need to disable the button after it has been clicked. Today it looks like this: <asp:Button ID="btn_Enviar" runat="server" CssClass="btn btn-primary" Text="Enviar" OnClick="btn_Salvar_Click" data-loadi...
asked by 22.08.2014 / 15:28
1
answer

Windows Service - ERROR [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified

I have 2 projects (WebForms and Windows Services) in .NetFramework 4 that connects to the Oracle database through ObdcConnection. In the web project I can successfully open the connection ... However in Windows Services the following error...
asked by 29.08.2014 / 00:11
2
answers

Mounting html by c #

I think I have a better way of doing this, because when I did it made sense now I do not understand anything else, because it makes me very confused: I have a field in the table that stores the following content: Descrição: O curso visa ca...
asked by 27.08.2014 / 15:47