Questions tagged as 'c#'

2
answers

Many Relationship To Many Entity Framework 6

Good morning, I have the following classes: CONSUL_CA_Aluno: public class CONSUL_CA_Aluno { public int Id { get; set; } public string Nome { get; set; } public int Cpf { get; set; } public string Email { get; set; } pu...
asked by 05.05.2014 / 21:01
2
answers

Suggestion Migration System and modeling of individuals and legal entities in a system with Entity Framework

Well, the question is this. I have a database that has the purpose of making the cash book of a company, basically this bank has a CaixaCorrido table with columns Id , PessoaNome , DataHora , Descricao , Valor...
asked by 09.03.2016 / 15:23
1
answer

Is the C # language recommended to be distributed online with a database?

It is very easy to get the entire code from a C # program using .NET Reflector. Would it be possible for me to put the same security in a C # program as a program made in C ++? I found this answer in Stack Overflow in English but even in...
asked by 01.02.2016 / 17:33
2
answers

What is the difference between Sessions and Cookies

What's the difference between Sessions and Cookies ? In what circumstances should I use?     
asked by 25.02.2016 / 15:48
3
answers

Update an element of a generic list by a specific item

How do I update a specific element of a generic list by locating by ID and passing an updated object in its place, updating the name and email? class Program { static void Main(string[] args) { List<Aluno> aluno = new Lis...
asked by 16.09.2015 / 21:48
1
answer

Is it safe to save multiple entities at the same time in the ASP.NET MVC Controller?

I need to save 12 entities to the same method in Controller , I do not know if I'm doing it right. In my method Create of Controller , I call all entities and add all attributes in the same View . When you click the save button, you...
asked by 26.01.2015 / 20:35
1
answer

Function to generate random alphanumeric characters

I need a C # function that generates a String of random alphabetic and numeric characters of size N .     
asked by 01.09.2015 / 21:38
2
answers

Resource in an enum

I have enum and would like to change the Description with Resource: public enum SystemArea { [Description("Gestor")] Gestor = 3, [Description("Administrador")] Administrador = 2, [Description("Professor | Prof...
asked by 27.08.2015 / 19:46
2
answers

Fluent API with ASP.NET Identity

As this tutorial , I transported Identity in < in> class library to encapsulate the system business rule. However, the entire system is using the Fluent API to map the entities and Identity generates the tables through the code first . I...
asked by 13.02.2015 / 17:10
1
answer

What is an input parameter with equality (assignment operator)?

I have a function defined as follows: public classeDeRetorno nomeDaFunção(string param1, string param2, string param3 = "") What does param3 = "" mean? Does it equal the parameter to "" ?     
asked by 10.01.2017 / 12:43