Posts by Cristiano Reis • 66 points
3 posts
-
0
votes1
answer116
viewsA: How to find the user logged in to the Infra layer? (Using DDD with C# MVC EF)
You can include in the constructor of the class responsible for doing the work with the ORM (or without ORM as well) the parameter with the logged-in user ID, and in the dependency injection mapping…
-
0
votes2
answers99
viewsA: Sending a Data List by Email - ASP.NET MVC C#
You can include the JSON serialization library most used in the Dotnet architecture, and serialize your list in a string, here’s an example: using Newtonsoft.Json; string suaListaSerializada =…
-
5
votes1
answer44
viewsA: C# Conversion Error when trying to save to SQL Server database
Your first parameter failed to take the Text property this way: cmd.Parameters.Add("@DPROD",SqlDbType.VarChar).Value=txtdesc.Text;