Questions tagged as 'c#'

1
answer

Can not perform an aggregate function on an expression containing an aggregate or a subquery [duplicate]

I have this query and it does not allow me to use an aggregation function within another aggregation function and the fact is that I want the fields not to be repeated and I have already tried with distinct and nothing. this is the error:...
asked by 21.08.2018 / 18:11
1
answer

incorrect syntax near the key word 'UPDATE' [closed]

I have a problem when I try to update the data in my table, it sends me this error:    incorrect syntax near the key word 'UPDATE'. ...     
asked by 10.04.2017 / 16:05
0
answers

What would be the best way to compare if two objects are of the same class? C # [closed]

I mean, I'm doing my first steps in C # and I have a doubt. I have an interface which has 4 methods, and two new classes that inherit from this interface. What I try is that when calling one of those methods "CompareTo ()" depending on whether i...
asked by 16.08.2017 / 16:26
1
answer

How can I show the values that are stored in the for cycle from C # console [closed]

Enter 5 numbers and show on screen int n=1; for(int i = 0; i < 5; i++) { Console.WriteLine("Dame un numero"); n = Convert.ToInt16(Console.ReadLine()); } Console...
asked by 07.11.2018 / 18:31
0
answers

How can I get an employee's vacation period C #

You see, how could I do this in code, I've been spinning again and again but I can not think of how to implement it with code c #. An employee who has been in the company for 1 year of work has 6 days of vacation, another that has been workin...
asked by 04.01.2019 / 23:24
1
answer

Translate this vb.net Code to C #

How could I translate this code to C #? If TypeOf (ctrl) Is GridView AndAlso Not DirectCast(ctrl, GridView).HeaderRow Is Nothing Then Dim grid = DirectCast(ctrl, GridView) For i = 0 To (grid.HeaderRow.Cells.Coun...
asked by 14.02.2018 / 15:50
1
answer

Not all access paths return a code

Not all the paths return a value, as I can solve it. thank you very much !!     
asked by 20.08.2018 / 15:32
1
answer

novice in c # and in general [closed]

How about? I just registered in this great forum, and wanted to say hello and ask for ideas about the creation of a rural house management program in c #. Create the database in MySql (nothing of the other world), I was wondering if to make an a...
asked by 06.04.2016 / 19:51
1
answer

Doubt variables in C #

I have a question with the variables in C # I am putting together a practice on a parking lot, I would need a global variable to use it in my functions. How should they be declared?     
asked by 16.12.2018 / 21:52
2
answers

you can save data from the datagrid without having to use a database

I have been asked to do this project using queues, but my problem is that I would like to know if datagridview data can be saved in memory without having to go to a database program.     
asked by 30.05.2017 / 23:30