Questions tagged as 'c#'

1
answer

User permissions

I do not know how I can be implementing user permissions on my systems and would like to get some north. From my class: public class Loja_Usuarios { public int ID { get; set; } public string Nome { get; set; } public string Logi...
asked by 20.06.2014 / 19:49
1
answer

Create Web Service by reusing code from an already published site. Good practices in Asp.NET MVC

I need to create a web service in JSON reusing the maximum code my site has, but I do not know how to do it, if I should add a solution in my site project etc. I can not abstract the idea, I need to after that access it from a Wind...
asked by 06.06.2014 / 02:13
1
answer

How to use Reflection [duplicate]

How and why to use Reflection? Is it practical in day to day use? Does your use offer any gain for the system itself?     
asked by 10.06.2014 / 18:47
3
answers

Error generating PDF with RotativaW7

Well, I'm having a problem here to generate a pdf with the data coming from the bank. My system has a student register and its occurrences. What I wanted is that, when detailing the data, I could print these data on the screen (the data of the s...
asked by 05.06.2014 / 23:45
2
answers

Any method to save the data of an ArrayList

First of all, some information:   .NET Framework 4.0 Visual C # = = I am simulating a database using a class specifically for this, using a List<string[]> , however, I would like to be able to store and save this data even...
asked by 26.04.2014 / 02:12
2
answers

null check returns reference error

Model public class Transacao { [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int ID { get; set; } [Required] public DateTime Data { get; set; } [Required] public decimal Valor { get; set; } }...
asked by 14.05.2014 / 20:40
1
answer

Expression inside a lambda gives error

I created a lambda and tried to create one or one expression or another. With or (||) did not work. There, instead of || I've been adding Where. That's right? This is it now: var resultado = db.T_CRM_StatusPDV .Where(a => a....
asked by 30.05.2014 / 02:01
2
answers

Relative path to txt in ASP

Good afternoon, I am generating a file with Asp net the function saved in HD if I put the path, however this file will be saved on a server and I am having difficulty to place the relative path of the location where this file will be saved, I do...
asked by 23.10.2018 / 20:09
3
answers

Doubt of how to capture the animation of the character in the Unity

I'm trying to make a command that activates an animation when I press 2 keyboard keys and when I stop pressing one of them, that animation stops. For example I chose the "w" + "leftShift" key, when both are pressed I want to start the animation,...
asked by 30.10.2018 / 16:56
1
answer

Compare two lists of objects and pick up only the different [duplicate]

I'm having trouble comparing two lists of the same type List<Produto> in my product class I have the following structure. public class Product { public int IdProduct { get; set; } public String Name { get; se...
asked by 30.10.2018 / 13:50