Posts by Angelo Simonato • 478 points
22 posts
-
4
votes1
answer145
viewsA: Left Join with a table does not return null value
Mariana, I’m going to put as an answer right now because I think this is the case. The Class you are using is demanding values, that is, they are NOT NULL fields. When you are bringing a null field…
-
2
votes3
answers37
viewsA: Select entries between two dates
Marco, good morning! Looking at your problem, the next question came to mind: There exists within the framework in which the database tools were built the question that differentiates DATA from…
-
2
votes2
answers81
viewsA: Variable not holding the assigned value
Darius, good afternoon! As you said yourself, the scope of the variables are different, to persist this value, you would have to pass it as parameter in the functions you are using OR declare the…
c++answered Angelo Simonato 478 -
1
votes2
answers1108
viewsA: Command to set a default value for a column in SQL Server
Julio, good afternoon! If you have already set the table to have a default value in creating it, there is no need to pass value to the column when you do the Insert. Creation example with Default…
-
1
votes1
answer33
viewsA: Why access to a Session within an Actionfilter is behaving this way
Good morning Personal! I found the solution at the end of Friday. From what I understand about this issue of sessions and actionFilters, if the creation of the Session is made within the…
-
1
votes1
answer33
viewsQ: Why access to a Session within an Actionfilter is behaving this way
Greeting to all. I am developing an application in Asp.NET MVC5 and found a following problem: The application needs me to log in from any screen it accesses via browser. To decrease the amount of…
-
0
votes1
answer54
viewsA: Nhibernate + . Netframework 3.5
From what I saw, the latest version for framework 3.5 was 5.0.0 (no dependency on frameworks). Any questions can take a look here at their github also: github nhibernate…
-
1
votes1
answer40
viewsA: Use of Syntaxtree
Gean, good afternoon to you! As stated at the beginning of the post that you used as a basis for the question, I could say that the utility in common systems, commercial, would be zero even as…
-
1
votes1
answer33
viewsA: Get email from current User
Hefty, good afternoon, Hefty! The email is a property linked to the user’s AD normally. So you should consult the AD to find it, example: ActiveDirectoryManager oUser = new ActiveDirectoryManager();…
-
2
votes2
answers1224
viewsA: What is and what is the < br clear="all" >?
The clear property is a property used to clear any right or left alignment of that element. If you use this property you will be cleaning from all sides ("all") alignment floats. The use of <br…
-
-1
votes3
answers57
viewsA: I cannot return data from an asynchronous Ajax
About the error: TypeError: dropdownItems is undefined Basically your code is assigning values to an object not yet rendered by your browser or that at the time it was called the function was still…
-
-1
votes1
answer275
viewsA: Dropdownlist with Selectlist Item
Matheus, in your method: GetAllOfficeAsync Add a validation to return your listing, if you return a blank list, pass Null instead of passing the List. Try to do so: public SelectList…
-
4
votes2
answers293
viewsA: How to make a switch in C#?
Switch/Case Usage Issue cannot be ruled between leaving the code beautiful or ugly, but whether it is valid or not. I see switch/case being commonly used to assign environment variables for example.…
-
2
votes3
answers283
viewsA: No Fill new column as Null, yes with specified value in script
John, good afternoon to you! You have to insert the column as nullable, after that you update the existing records to the value of 15 minutes you want. Once this is done and knowing that the field…
-
3
votes1
answer141
viewsA: C# Web API 2 - AJAX Request for PUT method returning 405 (Method Not Allowed)
Ricardo, can your URL be solved? I didn’t run a table test here but your example uses the URL http://localhost:49232/api/Products/1025 And your method is waiting for two arguments (an integer and an…
-
2
votes1
answer45
viewsA: I can’t perform a Repository search with Nhibernate C#
Juan, good morning! This passage tells your problem: 1: ArgumentException: O valor "SGB.Services.Spec.DataTransferObjects.DTOComposicaoBeneficioBeneficiario" não é do tipo…
-
0
votes2
answers1042
viewsA: How to create a Datatable that has a dynamic column structure?
If I understand your question correctly, you just need to mount a grid/table with the dynamic data coming from code-Behind, correct? If this is the case, because you do not use in this case a…
-
1
votes1
answer109
viewsA: Error updating model through database
I’ve had a similar bug. My solution was the following, delete the tables of edmx, save and after that instead of giving an "update", go and add as new all entities again.
-
-1
votes2
answers227
viewsA: Remove "OR" condition from LINQ query
Would it be possible to do the Where Clause after this Iqueryable<>? Just do the joins and select your needs, then do the Where with Lambda clauses on . Where(q=>q...)
-
1
votes1
answer579
viewsA: HOW TO CALCULATE INSIDE A CLASS? C#
Error in question is referring to the return inside the Loop; Put it like this: static int Fatorial(int numero) { for(int i = 0; numero <= 1; i--) { numero = numero * (numero - 1); } return…
c#answered Angelo Simonato 478 -
2
votes2
answers404
viewsA: Query with Datetime Sql and C#
Information that may be relevant and informative at the same time in this case. As already mentioned above by fellow @Pedro Gaspar, Date is different from Datetime. In the SQL Server database,…
-
-1
votes1
answer417
viewsA: Error When Updating Database with Entity Framework Core Code First
I need to know if you updated your mappings with the change that was made to your entity. If yes, you have to add a new Migration (Add-Migration 'name') and then give updade-database (not required,…