Posts by Kelly Soares • 1,181 points
45 posts
-
0
votes1
answer32
viewsQ: Error formatting ZIP with Format() function
When trying to format the data of the CEP variable, SQL Server returns the following message: Argument data type varchar is invalid for argument 1 of format Function. Just follow my code: DECLARE…
sql-serverasked Kelly Soares 1,181 -
2
votes1
answer857
viewsQ: Does not contain a Definition for 'Include' and the best Extension method Overload 'Queryableextensions.Include(Iqueryable, string)
Why does my code not recognize the method . Include("Category") in my Consoleapp? Where am I missing? Severity Code Description Project File Line Suppression State Error CS1929 'Ienumerable' does…
-
0
votes1
answer3477
viewsQ: Error: Error Converting data type nvarchar to Numeric
I am trying to convert data from a column in NVARCHAR(255) to DECIMAL(10,2), however, all the ways I tried always gives the same error Error Converting data type nvarchar to Numeric. I created…
sql-serverasked Kelly Soares 1,181 -
0
votes1
answer42
viewsQ: Error in vector calculation in C
I’m refactoring my code to make it more dynamic, but by including the line int n = sizeof(vetor)/sizeof(int); within the function bubble it has failed to function properly. Where am I missing?…
casked Kelly Soares 1,181 -
0
votes1
answer619
viewsQ: Print matrix elements in C++
I’m trying to print the elements of the fruit matrix inside a for, but the code is not working. Where I am missing? int main() { char frutas[20][4] = { "Açaí", "Acerola", "Abacate", "Abacaxi",…
casked Kelly Soares 1,181 -
1
votes1
answer193
viewsQ: What is the difference between setAttribute() and setAttributeNode()?
Could someone take away this doubt? I need to know the difference between setAttribute() and setAttributeNode()? Grateful!
javascriptasked Kelly Soares 1,181 -
4
votes3
answers15156
viewsA: List all triggers in SQL Server
That’s what you’re looking for? SELECT Object_Name(parent_id) AS [Nome Objeto], type_desc AS Tipo, modify_date AS [Data Modificação] FROM sys.triggers…
-
2
votes1
answer418
viewsQ: Capture dynamic click checkbox event
I created a checkbox list as each category is entered into the database. However, I am unable to capture the click event of these dynamically created Checkboxes. Does anyone know where the error is?…
vbaasked Kelly Soares 1,181 -
-3
votes1
answer369
viewsQ: How to calculate international credit card IOF?
Has anyone ever needed to implement international credit card IOF calculation function on systems that could give me this help? I need to know the rules of how to calculate. Thank you!
c#asked Kelly Soares 1,181 -
0
votes3
answers16754
viewsA: "Must declare the scalar variable" error
You are trying to pass a set of records to a single variable. The @VDIAPARALYZED variable expects a Scalar value, that is, a single value.
-
0
votes1
answer106
viewsQ: ASP MVC 5 - Image Upload Error "The input is not a Valid Base-64 string"
I am trying to solve this error in all the ways I found suggested in forums, but all the solutions I tried none solved my problem. Whenever I perform a Ubmit my View shows this error and does not…
asp.net-mvc-5asked Kelly Soares 1,181 -
6
votes2
answers2858
viewsQ: Difference between Viewresult and Actionresult
What’s the difference between Viewresult and Actionresult? I usually call a View using an Actionresult, but I’ve seen code with Viewresult. Then this doubt arose.
asp.net-mvc-5asked Kelly Soares 1,181 -
1
votes2
answers597
viewsA: Error creating modal window with jQuery in ASP.NET MVC
This problem was solved with the help of a friend of the forum VBMANIA.COM, whose nick is KERPLUNK. I haven’t made the proper comments, but if you look closely, you can understand how it works. I…
asp.net-mvc-5answered Kelly Soares 1,181 -
3
votes3
answers306
viewsQ: Javascript: Retrieve text from an Option
Where is the error in this code below that is only returning the state acronym? window.onload=function(){ var form = document.getElementsByTagName("form")[0]; var cmdEstados = form.Estados;…
javascriptasked Kelly Soares 1,181 -
-2
votes1
answer234
viewsQ: Entity Framework does not edit FK
I’m having some difficulties with a big project, and I tried to make a very simple replica to post here so that someone can help me. One of the difficulties I’m having is how to edit the fields with…
-
3
votes3
answers5031
viewsQ: Error formatting ZIP code
I’m having problems with my script, when the zip code field is already formatted, it clears the field by clicking again on the button. How do I make it not to accuse as invalid format or not clear…
javascriptasked Kelly Soares 1,181 -
2
votes4
answers222
viewsQ: Doubt in jQuery variable creation
Researching materials on jQuery I noticed that some articles use two types of variable declaration, some using the dollar sign and others not, as in the example below: Alternative 1 var $row…
-
0
votes1
answer691
viewsQ: Bundleconfig does not load all CSS files
I am trying to load the CSS files jquery-ui.css and jquery-ui.theme.css creating a Bundles, but Bundle insists on only loading the standard CSS of ASP.NET MVC which css site.. To work, I always have…
-
-1
votes2
answers141
viewsA: Error while trying to pass an ordered collection to a View
i discovered the error in my code. I was using hidden field in a Data Insertion View that there is no need. Upon realizing the error and deleting, I was able to pass a collection directly through my…
-
3
votes2
answers141
viewsQ: Error while trying to pass an ordered collection to a View
I’m trying to get to the View an ordered collection, but I’m always having the same error: There is no Viewdata item of type 'Ienumerable' that has the key 'Titulodecortesia' The only way I can…
-
1
votes1
answer493
viewsQ: Relationship Problem with EF6 (Relationship and Associative Class)
I need to know if my auto relationship and my associative class are created correctly according to the original model made in the SQL Server Diagram. Original Model - SQL Server My model in Power…
-
0
votes2
answers597
viewsQ: Error creating modal window with jQuery in ASP.NET MVC
I am trying to create a modal window with registration deletion confirmation and avoid having to create a View only to present a message, but something is not loading right. I tried to create the…
asp.net-mvc-5asked Kelly Soares 1,181 -
1
votes2
answers147
viewsQ: Error loading Dialog Widget() jQuery in ASP.NET MVC
I installed jQueryUI, I changed my Bundleconfig, but still the browser does not recognize the Dialog() widget in my script jquery.dialogo.js. I checked if the library is being loaded and everything…
asp.net-mvcasked Kelly Soares 1,181 -
1
votes1
answer54
viewsQ: Error with 1 relationship for many, Power Tools does not generate model
I want to make relationship one for many in EF where one and only Territory has several regions, but when analyzing the model in Power Tools it does not recognize. Region [Table("Regiao")] public…
entity-frameworkasked Kelly Soares 1,181 -
3
votes1
answer237
viewsQ: Remove EF dependencies without using the Myconfiguration class
I am trying to create an application by removing all EF dependencies and leaving only the necessary layers: Repository and Applying. I did a small project to test the operation before applying in…
-
1
votes2
answers337
viewsA: No Entity Framework provider found for ADO.NET provider
I was able to solve the problem by creating a class to remove EF dependencies: public class MyConfiguration : DbConfiguration { public MyConfiguration() { SetProviderServices(…
-
1
votes2
answers337
viewsQ: No Entity Framework provider found for ADO.NET provider
I am splitting my application in layers, I installed the EF in the application layers and repository, in my view everything is correct, but I am having the following error: No Entity Framework…
-
14
votes3
answers261
viewsQ: What is the advantage of using the Set<> method?
What is the advantage or difference in using the method Set<> and I can do the same thing without him as in Alternative 2? Alternative 1 var aluno = contexto.Alunos.First(x => x.Id ==…
-
2
votes2
answers2145
viewsQ: Error with System.Web.Webpages.Razor.dll
I tried to install the package install-package microsoft.aspnet.mvc.en for javascript in Portuguese and my application started not running anymore, giving error where everything points out that it…
asp.net-mvcasked Kelly Soares 1,181 -
2
votes1
answer208
viewsQ: Doubt in the operation of Automatic Migration with Migratedatabasetolatestversion
With automatic Migration the database is updated also when there is deletion of some property from my model class? That is, in addition to including a new attribute if something is added to my…
-
8
votes3
answers3818
viewsQ: Update an item from a generic list to 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) {…
-
7
votes2
answers5391
viewsQ: How to update an item from a generic list?
I am trying to change the name and email of a particular item in the list below, but I couldn’t find another way to remove the item from the list and add it again updated. There is another way to…
-
2
votes1
answer372
viewsQ: Insert data with LIST into ASP.NET MVC
I am trying to insert training record into a list that is being used in place of a database, but somewhere in the application it gets lost and the list keeps only the record that was entered via…
asp.net-mvcasked Kelly Soares 1,181 -
4
votes1
answer54
viewsQ: Error adding migration with Migrations
I am trying to add a migration and Migration returns the following message: The Designer Code for this Migration file includes a snapshot of your Current Code First model. This snapshot is used to…
entity-framework-6asked Kelly Soares 1,181 -
5
votes1
answer150
viewsQ: What is the "class" restriction on a generic type?
In the line below: public class Tree<TItem> where TItem : IComparable<TItem> This line I’m creating the definition of type TItem where TItem implements the interface IComparable, i.e., I…
-
3
votes1
answer294
viewsQ: What is the purpose of the Onmodelcreating method and how does it work?
I am studying Fluent API and I am with this doubt, I saw that this method can be empty, without any implementation. So what is its usefulness and how the Onmodelcreating method works that is in the…
entity-framework-6asked Kelly Soares 1,181 -
0
votes0
answers60
viewsQ: Questions with navigation and FK properties with Code First
Why in this code was identified as foreign key the Idgroup property and not the navigation property and what would be the correct form of the foreign key application? public class Grupo { public…
-
1
votes1
answer32
viewsQ: What are the errors in this code using EF6?
What are the errors or inappropriate practices in this code? static void Main(string[] args) { using (var db = new AccountingSystemContainer()) { var invHeader = db.InvoiceHeaderSet.Create(); var…
-
2
votes1
answer686
viewsQ: Error: Object Reference not set to an instance of an Object
I’m having the following mistake: Object Reference not set to an instance of an Object Can anyone identify which error in my code? Follow my classes: Program: class Program { static void…
-
1
votes1
answer348
viewsQ: Questions with Entity Framework (Navigation Properties and Create method)
I have been reading several articles and so far I could not understand the real function of the navigation property. In the last articles I read, it said that it serves as a foreign key for…
entity-frameworkasked Kelly Soares 1,181 -
0
votes1
answer35
viewsQ: Error with LEFT JOIN on LINQ
My query is returning as error Additional information: Object Reference not set to an instance of an Object. When I try to make a category that has no product display "(Non-existent)": var lst =…
linqasked Kelly Soares 1,181 -
1
votes1
answer311
viewsQ: LINQ Group By with multiple fields in key
How do I include the IdCategoria in addition to the category name in the Console of the first FOREACH? var lst = from p in BDProduto.produtos join c in BDProduto.categorias on p.IdCategoria equals…
-
2
votes2
answers2085
viewsQ: LINQ Group By with multiple fields
I am trying to return fields after a merge between collections, but am getting the following error: foreach statement cannot Operate on variables of type 'Anonymoustype#1' because 'Anonymoustype#1'…
-
1
votes1
answer2229
viewsQ: Identifying the foreign key in the Codefirst Entity Framework
The Entity Framework identifies the foreign key through properties that have Id as part of the name or by Data Annotation [Key]. My question is, how does it identify foreign keys and makes the…
entity-frameworkasked Kelly Soares 1,181 -
5
votes1
answer206
viewsQ: Doubt with Codefirst Entityframework
I’m starting in Entity Framework and I have a question regarding Codefirst. Why I have to use as virtual some properties like the example below? [Table("Grupo")] public class Grupo { public int ID {…