MySQL Forums
Forum List  »  MySQL for Visual Studio

Re: EF 6 MYSQL -Query Linq
Posted by: gama andalon
Date: March 05, 2017 12:01AM

EXAMPLE QUERY NORMAL fast:

//////////////////////////////////////
SELECT
*
FROM
`ca_activo`
INNER JOIN `detallesitemsactivos`
ON `activo`.`DetalleItemActivoRefId` = `detallesitemsactivos`.`IdDetalleItemActivo`
WHERE `activo`.`IdActivo`=1;


//////////////////////////////////////////////
query from linq:

SELECT
*
FROM
(SELECT * FROM `activo`) AS activor
INNER JOIN (SELECT * FROM `detallesitemsactivos`) AS detallesitemsactivosr
ON `activor`.`DetalleItemActivoRefId` = `detallesitemsactivosr`.`IdDetalleItemActivo`
WHERE `activor`.`IdActivo`=1;

Options: ReplyQuote


Subject
Views
Written By
Posted
305
March 04, 2017 05:00PM
Re: EF 6 MYSQL -Query Linq
183
March 05, 2017 12:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.