Posts by Vainer Cesario • 164 points
10 posts
-
1
votes1
answer54
viewsA: Select specific column of file . MDB in C#
Strictly looking at your code. You are consulting all the columns but writing only one. In your while it says display the other columns, respect the return types of your query, where string use…
-
1
votes1
answer92
viewsA: How to perform multiple database insertions
I will not go into merits of standards of its implementation. I will only look at your code. You will forward your list of items per parameter using JSON itself and automatically bind to the list.…
-
1
votes1
answer32
viewsA: Conceptual problem with webservice, how to make a webMethod
You are receiving static variables by parameter. You must make your Webmethod available with an object and decorate it as XML. [XmlSerializerFormat] public class Lote(){ public List<Romaneio>…
-
0
votes2
answers72
viewsA: My MVC 5 application inserts into the database, but the view does not display the list of records
In this command you are not seeking from the bank your model. You are taking the users model instance and giving a Tolist(). public ActionResult Index() { return View(db.Usuario.ToList()); } You…
asp.net-mvcanswered Vainer Cesario 164 -
2
votes4
answers137
viewsA: Change word by clicking the same word. Javascript
In your HTML you place a call to the javascript function. < p onclick='MudaPalavra()' > Palavra1</p> After, at the top inside ta head or at the end of the file before closing the, add…
javascriptanswered Vainer Cesario 164 -
1
votes1
answer192
viewsA: Problems with Migration
In the use of Migration you will have to get used to some commands: Add-Migration <nome-da-migration> To return to a specific version: update-database –target "<nome-da-migration>"…
-
2
votes1
answer113
viewsA: MVC DDD Project
Open topic long time huh! Already managed to solve? Come on, the good thing would be for you to isolate the Enumerators in another project of the solution, fixing in the application layer, because…
-
0
votes1
answer162
viewsA: How to pass properties of another model?
Do your classes relate? You can create a Viewmodel that contemplates your Models. Inside the controller you handle the loading of this Viewmodel doing the mapping due from your models to Viewmodel.…
-
0
votes1
answer116
viewsQ: How to find the user logged in to the Infra layer? (Using DDD with C# MVC EF)
I’m developing a feature for storing the history of screen record modifications. Example: I have a register of people, in this register of people, at each action performed (Insert, Edit, Delete) I…
-
0
votes1
answer982
viewsQ: Restore a SQL SERVER database from a mdf file
I need to restore a database from an MDF file. I took the mdf from another machine to be restored on a main machine. While performing the attach, linking the MDF file, an error occurs saying that…
sql-serverasked Vainer Cesario 164