Questions tagged as 'c#'

3
answers

Problem saving accent with Entity Framework and PostgreSQL

I need to migrate a system with SQLSERVER database to a PostGreSQL 9.3. I have never worked with PostGre before so I'm using Entity Framework 6 with model-first to make the process easier. The migration application is being developed in WPF. My...
asked by 28.06.2016 / 22:23
2
answers

Attribute Type for PostgreSQL oid column with EF6

What kind of attribute should I use to represent a column type oid of PostgreSQL with Entity Framework 6 Code-First? Remembering that PostgreSQL's oid type is for storing files.     
asked by 24.05.2016 / 16:27
1
answer

Generate Class from XSD - CTE for Webservice SEFAZ

Regarding the generation of NFE and CTE classes from the XSD for use in SEFAZ Webservices. I have had some ambiguity problems in the name of the generated classes. I used the Visual Studio Tools tool to generate the class from the XSD. How...
asked by 18.02.2016 / 16:29
1
answer

How to mount XML with C #?

I need to mount an XML as in the following example: <?xml version="1.0" encoding="utf-8"?> <MeuXML> <Clientes> <Cliente-1>Dados Cliente-1</Cliente> </Clientes> <Sistemas>...
asked by 08.01.2016 / 18:22
2
answers

XmlTextReader () identify node end and duplicate tags

1 - How to identify equal tags with different nodes? ex: Categoria within Dados and Formato 2 - How to identify that one product ended and another one started? I have the (fictitious) XML: <produtos> <...
asked by 14.01.2016 / 19:19
1
answer

How to change web.config when running Deploy?

I have an approval and a production environment in the cloud, but I deploy Deploy in File System . I have to insert some parameters and change the connectionString for each of these environments. Parameter examples: Information...
asked by 06.01.2016 / 22:03
2
answers

Error converting decimal value in Insert C #

I have an insert that receives some parameters, but at the moment that the sql statement is giving this conversion error:    Error converting data type varchar to numeric. //http://localhost:7630/api/AspNetWebApi/cadastrar/jogo/451...
asked by 06.01.2016 / 15:19
1
answer

Do a query and see in a dropdownList

You are giving the error below in dropdowList and I do not understand why. Error:    Can not bind the object of type 'System.Collections.Generic.List1 [
asked by 15.12.2015 / 17:42
2
answers

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 by using int , I if , if my ClienteID == 0 I saved, and if not equal to 0 I change. I want a way to d...
asked by 05.06.2016 / 11:14
1
answer

How to disable editing and block the addition of GridView rows

I have GridView that the user enters with some information and saves, I would like after saving click. put all grid in ReadOnly mode and would like to block to insert or delete lines. I'm using the'GridControl 'from DevExpress 1...
asked by 05.09.2016 / 00:29