Posts by Alexandre Previatti • 630 points
23 posts
-
0
votes1
answer26
viewsA: Convert WBMP image
I was able to solve using the library "System.Drawing.Common" and with the code below, using as reference the post https://stackoverflow.com/questions/11927391/how-to-convert-wbmp-to-png public…
-
0
votes1
answer26
viewsQ: Convert WBMP image
Good afternoon, How to convert a wbmp image to png or jpg using Asp.net core ? I tried to use the ImageSharp, but it doesn’t seem to support wbmp.
-
1
votes1
answer39
viewsQ: Related entity on page Razor
I have a problem on a page Razor, I have a "Person" entity that has a relationship with the entity "Address" public class Pessoa { public int Id {get; set;} public string Nome {get; set;} public…
-
1
votes1
answer47
viewsQ: Access to EF Core data
Doubt access to data efcore I have a table with many fields, I’m using EF Core for access, it is possible to return only the fields that I will actually use? Ex. in a listing, precise ID and Title,…
-
1
votes1
answer462
viewsA: How to use Generic Method with Dapper?
Check out this article from Poliana Dias, There is developing a project on Github with Dapper, there is an example of a Generic method. The project is right at the beginning, easy to understand and…
-
1
votes0
answers216
viewsQ: Automapper with related entity
Good afternoon, How to map the following entities public class Artista { public Artista() { ArtistaCategoria = new List<ArtistaCategoria>(); } public int ArtistaId { get; set; } public string…
-
2
votes1
answer66
viewsQ: Don’t Commit Specific Line in GIT
Hello, Is it possible in Git to ignore a specific line within a file? It would be interesting for cases where we need to register a password, in this case I need to commit the file, but I would like…
gitasked Alexandre Previatti 630 -
0
votes2
answers190
viewsA: Entityframework Storedprocedure recover parameter output
I managed to solve just added expression Out after the parameter outParameter (tomcunha’s answer) In the end it was like this: SqlParameter[] Params = { new SqlParameter("@ParametterWithNummvalue",…
-
1
votes2
answers190
viewsQ: Entityframework Storedprocedure recover parameter output
How to recover the Output parameter of a storedProcedure? SP Example: create PROCEDURE StoreProcedure_Name @ParametterWithNummvalue varchar(50) = null, @In_Parameter varchar(50), @Out_Parameter…
-
2
votes2
answers340
viewsA: How to make after a while the color of a div change
$(document).ready(function () { var adicionaClasse = function(){ $("#ControleID").addClass("ClasseAqui"); }; setTimeout(adicionaClasse, 2000); }); OR $(document).ready(function () {…
-
5
votes2
answers744
viewsQ: Deletion of related data - Entity Framework and C#
Hello, Using the same structure that I have been presenting here for some time, I come to ask for help now to delete the related data. Follows the entities.. public class Artista { public int…
-
4
votes1
answer1002
viewsQ: Update Many to Many Entity Framework c#
I am having difficulty updating a record with entityframework, I will inform the whole structure below. In short, I have a register of artists, where these artists are related to categories.…
-
3
votes1
answer249
viewsQ: Complex Entity Framework Update
Good morning, I have asked a similar question, I am trying to complement this see with more information and starting from the most basic. I have the following structure: public class Artista {…
-
7
votes1
answer310
viewsQ: Many Update to Many Entity Framework c#
Good morning, I am having difficulty updating a record with entityframework, I will inform the whole structure below. In short, I have a register of artists, where these artists are related to…
-
0
votes2
answers830
viewsA: Mask in html field does not work
Usa https://plugins.jquery.com/jquery.inputmask $(document).ready( $("#Cep").inputmask("99999-999"); $('#telefone').inputmask("(99) 9999-9999[9]"); });…
-
4
votes2
answers426
viewsQ: Class relationship - (C# Entityframework)
Hello, I have a Person Class and an Address Class Ex. public class Pessoa { public int Id { get; set; } public string Nome { get; set; } ... public Endereco Endereco { get; set; } } public class…
-
3
votes1
answer379
viewsQ: Pagination with generic method
I am trying to create a generic method for paging, I tried to do as the code below, but when using Skip I need to have a orderby and I’m not sure how to do. public IQueryable<TEntity>…
-
1
votes2
answers71
viewsA: Passing value of a VARCHAR variable in the WHERE IN command
Create a precedent that converts an array into a word list. CREATE PROCEDURE [dbo].[sp_ArrayToString] -- Add the parameters for the stored procedure here @ToString Varchar(1000) AS BEGIN -- SET…
-
4
votes1
answer402
viewsQ: Update One to Many Entity Framework
Hello, I need help with an update using Entity framework and relationship one for many. I believe it is something very basic, but I’m starting with EF and I can’t solve the problem. Artist and…
-
2
votes2
answers186
viewsA: Error when implementing sharing for facebook
When displaying the source code of the page are the data correct? you can use facebook’s own tools to check for errors in a particular URL. https://developers.facebook.com/tools/debug/…
-
4
votes1
answer561
viewsQ: Many Relationship Query for Many Entity Framework
I’m new to Entity Framework and Linq, so my doubt may be very simple, but it’s breaking my head. I have two entities: public class Fornecedor { public int FornecedorId { get; set; } public string…
-
0
votes1
answer68
viewsA: Search larger SQL sellers
Suppose there is a store table called Tblojas and it is related to this table that you used in the example via the Lojaid field. Instruction would look like this: select distinct B.co_operador,…
sql-serveranswered Alexandre Previatti 630 -
1
votes0
answers46
viewsQ: Use two User classes in Identity
How to use 2 classes as User in Identity. Ex. The site will have an administration area, and will use the default "Applicationuser" class that generates an "Aspnetusers" table from Identity to log…