Posts by Marcelo de Aguiar • 315 points
2 posts
-
15
votes2
answers1245
viewsA: Why is Addrange so much faster than Add?
Whereas you’re using the Entity Framework 6. What happens is that during the AddRange() automatic change checking is disabled, unlike with Add(). Try disabling the check and redo your test using the…
-
5
votes5
answers2401
viewsA: How do I merge two results of a query?
There are two ways: If the structure of your queries are the same you can use a UNION: var query = "select id, nome, email from funcionario union select id, nome, email from fornecedor"; You can…