Questions tagged as '.net'

1
answer

How to use expanded property in C #

I have a problem, I created a class containing the following property: public class MinhaClasse { public int Idade {get; set;} } However, when I do this: public class MinhaClasse { public int Idade { get{ return Idade;...
asked by 16.12.2017 / 22:06
1
answer

Is it possible to use MD6 in C #?

hash , is it possible to use MD6 in C #? Would anyone have an example of the use in a simple string ? In my searches I did not find anything very objective.     
asked by 16.09.2015 / 22:40
1
answer

Add migration and make update at runtime EntityFramework

I'm developing an application and the need to add migration and run the update at runtime. I already have all the part that loads the modules: public class ClientContext : DbContext { protected override void OnModelCreating(DbModelBuil...
asked by 10.06.2015 / 03:31
1
answer

Parameterizing DataSet in C #

I created a search screen with textbox , button and gridview . I would like the search results to appear in this Gridview but I can only do this with a Dataset . In this case, I needed to find a way to pass parame...
asked by 19.06.2016 / 18:32
3
answers

Out Of Memory When Running a GetFiles in a Very Large Directory

I currently have a directory with multiple subdirectories that have more than 3 million files. I need to map only the directory where these files are. And this mapping should be separated by file type. The big problems are when I run a .Ge...
asked by 18.07.2016 / 15:39
1
answer

How to move files read by StreamReader in C #?

I'm trying to move some files. For each file containing the word "TEST" in your body, my application indicates that it is an item found. The goal is to move them to another directory. Here is the code below: string[] Lista = new string[] { "TE...
asked by 19.10.2014 / 02:27
1
answer

Serialization of exceptions

According to the msdn documentation, an exception must be serialized if it needs to be propagated out of the assembler. In visual studio, I have a solution with some projects, among them a class library project (dll), in which I create severa...
asked by 09.02.2016 / 17:59
4
answers

How do I update my data in the table using EntityFramework?

var contactado = ContactadoRepositorio.ObterListaContactadoPorCodigo(procedimentoVM.CodContactadoPessoa); //obtenho o contactado pelo id obtido; foreach (var c in contactado) { var contactadoPessoa = new ContactadoPessoa() {...
asked by 21.01.2015 / 13:35
1
answer

How does the seed influence the generation of random numbers?

The question is quite simple, I would like to know how the System.Random class generates random pseudorandom numbers from a seed, which I think is rather strange. I know they are not totally random, and so I have my doubt as to how they a...
asked by 09.04.2017 / 06:59
1
answer

How to use multiple App.config

How to use more than one App.Config? I have a Solution with several projects. In each project there is an App.Config. When I try to read a key, either by AppSettingsReader or System.Configuration.ConfigurationManager.AppSettings th...
asked by 23.08.2017 / 19:08