Questions tagged as '.net'

1
answer

Why does Visual Studio 2013 not let me use version 4 of the Entity Framework?

I do not know why, but whenever I try to update the Object Model of an old project we have, Visual Studio 2013 asks if we want to keep version 4 of EF, but even marking the right version it updates and includes references to version 5. With t...
asked by 10.02.2014 / 21:11
1
answer

What does T mean in .NET?

I'm working on a project and I saw a lot of code like this public class ExemploCollection<T> { ... } And I do not understand what this <T> means. What's the name of it, what do I look for? How does this work? What does...
asked by 22.12.2013 / 00:24
1
answer

Add grid data to the bank

I have a loan screen and I have a datagrid with a checkbox checkbox and I would like to add only the row selected by the user in the database, how can I do it? Loanscreencode:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentM...
asked by 19.01.2016 / 17:10
1
answer

How to get attribute dynamically

How would I do the following PHP code in C #? class teste{ public $x = 10; public $y = 10; } $n = new teste(); $a = "y"; print_r($n->{$a}); Note that the dynamism is in the variable $a , in which if I change to x i...
asked by 23.12.2015 / 01:45
1
answer

Emission and control of software license registration file

I have a system for controlling and issuing electronic license registration files so that I can control how many machines my software can run. My teacher advised me to use the processor's CPUID to validate and generate a license file (get C...
asked by 21.12.2015 / 01:15
2
answers

Show whitespace for Null value in Views

When I send some value null to my view , and Razor tries to render the value, an exception is returned. Is there a way, when view gets a null value, render this as a blank space without having to do checks with if ?     
asked by 07.05.2015 / 15:17
1
answer

Download FTP using C #

I'm trying to download an FTP server. The problem is this: I need a way to partition the file I'm downloading. So that it is downloaded part by part and not complete at once. Doing so asynchronously also does not work for my case because it w...
asked by 29.10.2015 / 14:40
1
answer

How do I run a web application in IIS without hosting the source code on the machine?

Developed a web application (asp.net, c #, javascript, etc.) for a client. The idea is to mature that application, and turn it into a product. The question is, how can I run my web application locally, ie by IIS, on the client server, without le...
asked by 05.08.2015 / 19:51
3
answers

Custom tool warning: Can not import wsdl: portType

I can not use ServiceReference after successfully importing. After executing the import, writing the class and using its methods in the compilation occurs the Warnings: Warning 1 Custom tool warning: Cannot import wsdl:portType Det...
asked by 03.02.2014 / 19:19
1
answer

How to define the culture in a WCF WebService?

I have a WCF plication running in IIS where the server language / culture is set entirely in English. There is no way I can change the server settings so that I can change the server's culture or language. You would need an application...
asked by 31.01.2014 / 16:14