Questions tagged as '.net'

2
answers

Separating static methods into several classes can have a negative impact?

In organization, it is important to separate the methods into different classes. If we organize the methods into different classes in order to create a better organization, can we have a negative impact on program performance? For example,...
asked by 20.01.2017 / 01:35
2
answers

How do I access properties of an object that is inside another object?

In the background I want this output Console.WriteLine(cidade1.casas.dono); to return João using System; namespace arrayteste { public class cidade { public string nome { get; set; } public object cas...
asked by 27.06.2017 / 14:47
2
answers

How to scan a string and check content inside it?

I need to make a check with a given text within a string . How do I go through this string and look up the text to do this check? Example: If(dentro da string contém "Olá") { Mostre o valor determinado para essa string; }     
asked by 03.11.2015 / 13:41
1
answer

Is it possible to use composite key for Entity Framework with Model First?

I have the modeling down and I need to map composite keys as the embedded id of hibernate, but in the entity framework using the model first, is it possible?     
asked by 30.10.2015 / 22:48
3
answers

Add table values

I have a table where I return the amounts paid per taxpayer monthly. But I need to create a subtotal field, adding up the values for each month. Much like the Fibonacci Sequence. The problem is that I need to look up to when the taxpayer made th...
asked by 05.03.2015 / 14:20
6
answers

Part of Label in Bold?

How to put a part of string of a Label into Windows Form in bold via code in c# . Does anyone know anything via code for this?     
asked by 12.02.2014 / 20:22
2
answers

Loop is not repeating as it should

I am creating a code that reads the number entered by the user and, if it is from 1 to 10, he / she performs the table, presenting value by value on the screen, and allows the user to choose whether to check another table. The first time, it...
asked by 14.07.2017 / 19:51
1
answer

Connecting to the database with App.config

How to establish a connection to the Northwind database using App.config and ADO.Net?     
asked by 27.06.2014 / 02:48
1
answer

How to declare an integer variable in C #?

I'm learning C # to migrate a system in VBA to C #. I'm really enjoying the .Net language. How do I declare a variable of integer type?     
asked by 30.06.2016 / 23:41
3
answers

Site in C # and MVC too slow

I developed a site in MVC and C #, but after deploying to the Gogaddy server I have noticed that the first access is very, but very slow. I almost check if there is a logged-in user, if I do not, I redirect to the login screen for access....
asked by 28.07.2015 / 01:22