Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all 1447 articles
Browse latest View live

MySQL Connector/NET 6.6.7 has been released (no replies)

$
0
0
Dear MySQL users,

MySQL Connector/Net 6.6.7 is a maintenance release for the 6.6.x series of the .NET driver for MySQL. It can be used for production environments.

It is appropriate for use with MySQL server versions 5.5-5.7.

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloadsandmirrorsites
(note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

Changes in MySQL Connector/Net 6.6.7 (2014-11-11)

This is the final release of the 6.6.x branch.

Bugs Fixed

* The fluent API DbModelBuilder.HasColumnType had no effect
in Entity Framework 6. (Bug #19476922, Bug #19456229, Bug
#19462808)

* Creating a "Model First" or "Database First" model using
MySQL 5.7 would set ProviderManifestToken to 5.6. (Bug
#19475012)

* Setting a Primary Key GUID identity in "Code First" in
Entity Framework 6 did not function with MySQL server
5.7. Inserting a row with a valid value for the GUID
generated an error, even when it had a trigger set to the
correct value.
As a workaround, it was necessary to redeclare the column
definition to accept a dummy default, such as "default
''". (Bug #19456452, Bug #19462811, Bug #19476995)

* Non Primary Keys declared as "Identity GUID" did not have
their GUID's automatically generated. (Bug #19456415, Bug
#19461919, Bug #19477029)

* When using Entity Framework 4.3 Code first Identifiers
for Migrations and Entity Framework 6, generated foreign key
(http://dev.mysql.com/doc/refman/5.6/en/glossary.html#glos_foreign_key)
identifiers could be longer than 64
characters, causing MySQLException errors. The fix
renames any too-long identifiers using the name format
FK_guid, where guid is a global unique identifier
generated at runtime. (Bug #19211564, Bug #19483128)
References: This bug is a regression of Bug #67285.

* When trying to alter a stored procedure or trigger that
included references to session variables, an error
occurred and the changes were not saved, unless "Allow
User Variables=true" was set in the connection settings.
An error is no longer generated, and similar issues with
renaming stored procedures or triggers using Alter
Routine were also fixed. (Bug #19211432)

* In Visual Studio, Connector/Net did not read the
millisecond portion of a time value for a field of type
TIME(3). (Bug #19211409, Bug #18111085)

* The MySQL parser did not recognize the full string
literal syntax of [_charset_name]'string' [COLLATE
collation_name] as supported by the MySQL Server. This
fix makes Connector/Net and MySQL for Visual Studio
recognize the string literal syntax as specified in the
Character String Literal Character Set and Collation
(http://dev.mysql.com/doc/refman/5.6/en/charset-literal.html)
section of the MySQL Server manual. (Bug #19211249,
Bug #18169145)

* When the connection limit was exceeded,
MySqlConnection.Open() would leave the TCP connections in
a CLOSE_WAIT state, but now closes them. (Bug #18665388,
Bug #72025)

* When a client refreshed a web page associated with an
expired session and if the ASP.NET project was using
<SessionState ... regenerateExpiredSessionId="true" ...>,
a "duplicate entry" exception was generated from the
MySqlSessionProvider. (Bug #18657550, Bug #19783515, Bug
#70409)

* Entity Framework threw a NullReferenceException on
insertion of a record into tables that had an
auto-increment, unsigned, bigint primary key. (Bug
#18189217, Bug #19211404, Bug #71242)

* In Visual Studio, the stored procedure debugger did not
evaluate the last_insert_id() function in a watch
expression correctly. This fix also corrects similar
issues for two other information functions that query the
debug data table: row_count() and found_row(). (Bug
#18111085)

* When Connector/Net's SQL generator emitted code for the
LINQ Union() or Concat() operator, parentheses were not
applied around the individual SELECT statements. That
could cause a change of meaning for the query when a
Take() operator (thus a LIMIT clause in the SQL code) was
applied to the last SELECT statement. With this fix,
parentheses were put around individual SELECT statements,
so that the LIMIT clause will not be applied to the
entire result of the UNION operation. (Bug #18049691, Bug
#19211182, Bug #19483110, Bug #70828)

* The MySQL parser could not parse an if statement when
there were any spaces before the parenthesis for the
arguments (for example, "if (1,1, 1)"). Besides if, the
same issue occurred for a number of other functions like
row_count, ifnull, mod, repeat, and so on, and this fix
corrects the problem for all of them. (Bug #17981407, Bug
#19211240)

* The value for the Keepalive option in the connection
string was interpreted by Connector/Net to be in
milliseconds. This fix makes it to be interpreted as
number of seconds, as specified in the documentation.
(Bug #17981275, Bug #19211293, Bug #69484)

* A MySQL-session-state-enabled web application threw
exceptions for referencing the wrong table name
my_aspnet_Sessions (instead of the correct name
my_aspnet_sessions). This was due to the incorrect case
handling of the SQL queries for MySqlSessionStateStore.
(Bug #17960855, Bug #19211384, Bug #69652)

* The RenameColumn operation in an Entity Framework
migration threw an "Unknown column 'no' in the 'field
list'" error when Update-Database was applied. (Bug
#17959787, Bug #71102)

* In Visual Studio, Intellisense did not treat the keywords
"describe" and "desc" as synonyms of "explain". (Bug
#17956087, Bug #19211401)

* In Visual Studio, Intellisense showed views from all
databases, instead of just the current one. (Bug
#17954412, Bug #19211338)

* Connector/Net did not add the AUTO_INCREMENT property to
a primary key column of type BIGINT when creating a model
in Entity Framework. (Bug #17924407, Bug #17937401, Bug
#70602)

* Millisecond values written to a TIME(6)-typed field of a
database were wrongly serialized by Connector/Net. (Bug
#17924388, Bug #70686)

* Fractional part of a value read by
MySqlDataReadeer.GetTimeSpan() from a TIME(3)-typed field
was dropped. (Bug #17923814, Bug #70377)

* Sometimes invoking the IntelliSense code completion
(Control + J) on a MySQL file would emit an error. (Bug
#17890216)

* When opening or creating a .mysql file, trying to invoke
Intellisense caused an error in some cases. (Bug
#17890216)

* Connector/Net threw a NullReferenceException when trying
to save an entity into a table with a tinyint or bigint
auto-incremented primary key. (Bug #17866076, Bug #70888)

* Debugger failed to debug a routine correctly when it had
two functions in a single expression. That was due to an
error in handling the scope of the second function, which
has been fixed. (Bug #17865915)

* In Visual Studio, the debugger failed with parser errors
when debugging stored procedures with a Leave statement.
(Bug #17616344)

* When debugging a stored routine in Visual Studio with the
debugger, long identifiers caused the error "data too
long for column 'pvarname'" to be thrown. That was
because the SQL script of the debugger did not support
the same lengths for identifier names as the MySQL server
does. This fix matches the debugger with the MySQL server
on the maximum lengths supported for identifier names.
(Bug #17568158, Bug #70159)

* When using the Code First approach in Entity Framework 5,
a LINQ query that checked whether a nullable column was
null resulted in a faulty SQL query being generated. (Bug
#17285548, Bug #69922)

The documentation is available at:
http://dev.mysql.com/doc/connector-net/en/

Nuget packages are available at:
https://www.nuget.org/packages/MySql.Data/6.6.7
https://www.nuget.org/packages/MySql.Data.Entity/6.6.7
https://www.nuget.org/packages/MySql.Web/6.6.7

Enjoy and thanks for the support!

On behalf of the MySQL Connector/NET and the MySQL/ORACLE RE Team.

MySQL Connector/NET 6.7.6 has been released (no replies)

$
0
0
Dear MySQL users,

MySQL Connector/NET 6.7.6, a new version of the all-managed .NET driver for MySQL has been released. This is the GA, is feature complete. It is recommended for production environments. It is appropriate for use with MySQL server versions 5.5-5.7.

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloadsand mirror sites (note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

The 6.7 version of MySQL Connector/NET brings the following new
features:
- WinRT Connector.
- Load Balancing support.
- Entity Framework 5.0 support.
- Memcached support for Innodb Memcached plugin.
- This version also splits the product in two: from now on, starting
version 6.7, Connector/NET will include only the former Connector/NET
ADO.NET driver, Entity Framework and ASP.NET providers (Core
libraries of MySql.Data, MySql.Data.Entity & MySql.Web). While all
the former product Visual Studio integration (Design support,
Intellisense, Debugger) are available as part of MySQL Windows
Installer under the name "MySQL for Visual Studio".

WinRT Connector
-------------------------------------------
Now you can write MySql data access apps in Windows Runtime (aka Store
Apps) using the familiar API of Connector/NET for .NET.

Load Balancing Support
-------------------------------------------
Now you can setup a Replication or Cluster configuration in the backend, and Connector/NET will balance the load of queries among all servers making up the backend topology.

Entity Framework 5.0
-------------------------------------------
Connector/NET is now compatible with EF 5, including special features of EF 5 like spatial types.

Memcached
-------------------------------------------
Just setup Innodb memcached plugin and use Connector/NET new APIs to establish a client to MySQL 5.6 server's memcached daemon.


Changes in MySQL Connector/Net 6.7.6 (2014-11-11)

Bugs Fixed

* Generated code that matched against the start of a
VARCHAR/CHAR column now correctly uses "LIKE" instead of
location functions for the LINQ to Entity operators
"StartsWith", "Contains", and "EndsWith". Locate
functions do not make use of indexes placed on the
VARCHAR/CHAR columns, which caused significant
performance degradation. (Bug #19783747, Bug #19680236,
Bug #72058)

* Creating a Geometry Column with an SRID value would not
save the value to the table. (Bug #19783444, Bug
#19137999, Bug #19476721, Bug #71869)

* Generated SQL was missing several clauses, such as
OrderBy, GroupBy, and Skip), in cases that involved the
"let" keyword, or in other scenarios that were translated
into a DbApplyExpression. (Bug #19698010, Bug #19783760,
Bug #73549)

* LINQ to Entities queries failed for the cases that
contained a predicate using IList.Contains with an
argument of "DbCastExpression, DbConstantExpression,
DbParameterReferenceExpression". (Bug #19690370, Bug
#19783755, Bug #73643)

* A SELECT query that had a nullable DATETIME field in a
child .Any() clause with an .OrderBy() would fail and
emit a NotImplementedException exception. (Bug #19681723,
Bug #19795751, Bug #70722)

* The query optimization routine would return statements
with invalid table aliases when nested queries were being
optimized. This would throw an "Unknown column"
exception. (Bug #19681348, Bug #72004)

* The "Feature will be installed when required" option was
removed from the features list in the Connector/Net
installer due to it not supporting on-demand
installations because of dependencies with the
assemblies. (Bug #19670596, Bug #19681113)

* The fluent API DbModelBuilder.HasColumnType had no effect
in Entity Framework 6. (Bug #19476922, Bug #19456229, Bug
#19462808)

* Creating a "Model First" or "Database First" model using
MySQL 5.7 would set ProviderManifestToken to 5.6. (Bug
#19475012)

* Setting a Primary Key GUID identity in "Code First" in
Entity Framework 6 did not function with MySQL server
5.7. Inserting a row with a valid value for the GUID
generated an error, even when it had a trigger set to the
correct value.
As a workaround, it was necessary to redeclare the column
definition to accept a dummy default, such as "default
''". (Bug #19456452, Bug #19462811, Bug #19476995)

* Non Primary Keys declared as "Identity GUID" did not have
their GUID's automatically generated. (Bug #19456415, Bug
#19461919, Bug #19477029)

* "LINQ to Entities" queries that used Views with the Take
operator were not correctly generated. This problem
affected EF "Database First" scenarios. (Bug #19356006,
Bug #19789288, Bug #72148)

* Calling >MySqlConnection.GetSchema("PROCEDURES WITH
PARAMETERS", ...) would generate an error about a
non-existent index. This affected Intellisense when
completing stored procedures. (Bug #19289402)

* When using Entity Framework 4.3 Code first Identifiers
for Migrations and Entity Framework 6, generated foreign
key
(http://dev.mysql.com/doc/refman/5.6/en/glossary.html#glo
s_foreign_key) identifiers could be longer than 64
characters, causing MySQLException errors. The fix
renames any too-long identifiers using the name format
FK_guid, where guid is a global unique identifier
generated at runtime. (Bug #19211564, Bug #19483128)
References: This bug is a regression of Bug #67285.

* When the connection limit was exceeded,
MySqlConnection.Open() would leave the TCP connections in
a CLOSE_WAIT state, but now closes them. (Bug #18665388,
Bug #72025)

* When a client refreshed a web page associated with an
expired session and if the ASP.NET project was using
<SessionState ... regenerateExpiredSessionId="true" ...>,
a "duplicate entry" exception was generated from the
MySqlSessionProvider. (Bug #18657550, Bug #19783515, Bug
#70409)

The documentation is available at:
http://dev.mysql.com/doc/refman/5.7/en/connector-net.html

Nuget packages are available at:

https://www.nuget.org/packages/MySql.Data/6.7.6
https://www.nuget.org/packages/MySql.Data.Entity/6.7.6
https://www.nuget.org/packages/MySql.Web/6.7.6

Enjoy and thanks for the support!

On behalf of the MySQL Connector/NET and the MySQL/ORACLE RE Team.

MySQL Connector/NET 6.8.4 has been released (no replies)

$
0
0
Dear MySQL users,

MySQL Connector/Net 6.8.4 is a maintenance release for the 6.8.x series of the .NET driver for MySQL. It can be used for production environments.

It is appropriate for use with MySQL server versions 5.5-5.7.

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloadsandmirrorsites
(note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

Changes in MySQL Connector/Net 6.8.4 (2014-11-11)

Bugs Fixed

* Generated code that matched against the start of a
VARCHAR/CHAR column now correctly uses "LIKE" instead of
location functions for the LINQ to Entity operators
"StartsWith", "Contains", and "EndsWith". Locate
functions do not make use of indexes placed on the
VARCHAR/CHAR columns, which caused significant
performance degradation. (Bug #19783747, Bug #19680236,
Bug #72058)

* Creating a Geometry Column with an SRID value would not
save the value to the table. (Bug #19783444, Bug
#19137999, Bug #19476721, Bug #71869)

* Generated SQL was missing several clauses, such as
OrderBy, GroupBy, and Skip), in cases that involved the
"let" keyword, or in other scenarios that were translated
into a DbApplyExpression. (Bug #19698010, Bug #19783760,
Bug #73549)

* LINQ to Entities queries failed for the cases that
contained a predicate using IList.Contains with an
argument of "DbCastExpression, DbConstantExpression,
DbParameterReferenceExpression". (Bug #19690370, Bug
#19783755, Bug #73643)

* A SELECT query that had a nullable DATETIME field in a
child .Any() clause with an .OrderBy() would fail and
emit a NotImplementedException exception. (Bug #19681723,
Bug #19795751, Bug #70722)

* The query optimization routine would return statements
with invalid table aliases when nested queries were being
optimized. This would throw an "Unknown column"
exception. (Bug #19681348, Bug #72004)

* The "Feature will be installed when required" option was
removed from the features list in the Connector/Net
installer due to it not supporting on-demand
installations because of dependencies with the
assemblies. (Bug #19670596, Bug #19681113)

* The fluent API DbModelBuilder.HasColumnType had no effect
in Entity Framework 6. (Bug #19476922, Bug #19456229, Bug
#19462808)

* Creating a "Model First" or "Database First" model using
MySQL 5.7 would set ProviderManifestToken to 5.6. (Bug
#19475012)

* Setting a Primary Key GUID identity in "Code First" in
Entity Framework 6 did not function with MySQL server
5.7. Inserting a row with a valid value for the GUID
generated an error, even when it had a trigger set to the
correct value.
As a workaround, it was necessary to redeclare the column
definition to accept a dummy default, such as "default
''". (Bug #19456452, Bug #19462811, Bug #19476995)

* Non Primary Keys declared as "Identity GUID" did not have
their GUID's automatically generated. (Bug #19456415, Bug
#19461919, Bug #19477029)

* "LINQ to Entities" queries that used Views with the Take
operator were not correctly generated. This problem
affected EF "Database First" scenarios. (Bug #19356006,
Bug #19789288, Bug #72148)

* Calling >MySqlConnection.GetSchema("PROCEDURES WITH
PARAMETERS", ...) would generate an error about a
non-existent index. This affected Intellisense when
completing stored procedures. (Bug #19289402)

* Adding a new column to an existing model as identity and
PK failed when applying the migration. The generated
error was: "Incorrect table definition; there can be only
one auto column and it must be defined as a key". (Bug
#19268382, Bug #19286383)

* When using Entity Framework 4.3 Code first Identifiers
for Migrations and Entity Framework 6, generated foreign
key
(http://dev.mysql.com/doc/refman/5.6/en/glossary.html#glo
s_foreign_key) identifiers could be longer than 64
characters, causing MySQLException errors. The fix
renames any too-long identifiers using the name format
FK_guid, where guid is a global unique identifier
generated at runtime. (Bug #19211564, Bug #19483128)
References: This bug is a regression of Bug #67285.

* In Visual Studio, Connector/Net did not read the
millisecond portion of a time value for a field of type
TIME(3). (Bug #19211409, Bug #18111085)

* When the connection limit was exceeded,
MySqlConnection.Open() would leave the TCP connections in
a CLOSE_WAIT state, but now closes them. (Bug #18665388,
Bug #72025)

* When a client refreshed a web page associated with an
expired session and if the ASP.NET project was using
<SessionState ... regenerateExpiredSessionId="true" ...>,
a "duplicate entry" exception was generated from the
MySqlSessionProvider. (Bug #18657550, Bug #19783515, Bug
#70409)

* Entity Framework threw a NullReferenceException on
insertion of a record into tables that had an
auto-increment, unsigned, bigint primary key. (Bug
#18189217, Bug #19211404, Bug #71242)

* "MaximumPoolSize" and "MinimumPoolSize" were not
recognized as valid connection string options. (Bug
#18182246, Bug #19484670)

* When Connector/Net's SQL generator emitted code for the
LINQ Union() or Concat() operator, parentheses were not
applied around the individual SELECT statements. That
could cause a change of meaning for the query when a
Take() operator (thus a LIMIT clause in the SQL code) was
applied to the last SELECT statement. With this fix,
parentheses were put around individual SELECT statements,
so that the LIMIT clause will not be applied to the
entire result of the UNION operation. (Bug #18049691, Bug
#19211182, Bug #19483110, Bug #70828)

* During migrations with ASP.NET Identity 1.0 in Visual
Studio, the code generator did not generate the indexes
and foreign keys in the Up() class. (Bug #18049272, Bug
#19483069, Bug #71287)

* The value for the Keepalive option in the connection
string was interpreted by Connector/Net to be in
milliseconds. This fix makes it to be interpreted as
number of seconds, as specified in the documentation.
(Bug #17981275, Bug #19211293, Bug #69484)

* When using the Code First approach in Entity Framework 5,
a LINQ query that checked whether a nullable column was
null resulted in a faulty SQL query being generated. (Bug
#17285548, Bug #69922)

The documentation is available at:
http://dev.mysql.com/doc/connector-net/en/

Nuget packages are available at:
https://www.nuget.org/packages/MySql.Data/6.8.4
https://www.nuget.org/packages/MySql.Data.Entity/6.8.4
https://www.nuget.org/packages/MySql.Web/6.8.4

Enjoy and thanks for the support!

On behalf of the MySQL Connector/NET and the MySQL/ORACLE RE Team.

MySQL Connector/NET 6.9.5 has been released (no replies)

$
0
0
Dear MySQL users,

MySQL Connector/Net 6.9.5 is a maintenance release for the 6.9.x series of the .NET driver for MySQL. It can be used for production environments.

It is appropriate for use with MySQL server versions 5.5-5.7.

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloadsandmirrorsites
(note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

Changes in MySQL Connector/Net 6.9.5 (2014-11-12)

Bugs Fixed

* Generated code that matched against the start of a
VARCHAR/CHAR column now correctly uses "LIKE" instead of
location functions for the LINQ to Entity operators
"StartsWith", "Contains", and "EndsWith". Locate
functions do not make use of indexes placed on the
VARCHAR/CHAR columns, which caused significant
performance degradation. (Bug #19783747, Bug #19680236,
Bug #19944400, Bug #72058)

* The web providers registration required the removal of
the ".v20" suffix from the type in the web providers
section in machine.config. (Bug #19715398, Bug #74080)

* Generated SQL was missing several clauses, such as
OrderBy, GroupBy, and Skip), in cases that involved the
"let" keyword, or in other scenarios that were translated
into a DbApplyExpression. (Bug #19698010, Bug #19783760,
Bug #19944549, Bug #73549)

* LINQ to Entities queries failed for the cases that
contained a predicate using IList.Contains with an
argument of "DbCastExpression, DbConstantExpression,
DbParameterReferenceExpression". (Bug #19690370, Bug
#19783755, Bug #19944528, Bug #73643)

* A SELECT query that had a nullable DATETIME field in a
child .Any() clause with an .OrderBy() would fail and
emit a NotImplementedException exception. (Bug #19681723,
Bug #19795751, Bug #70722)

* The query optimization routine would return statements
with invalid table aliases when nested queries were being
optimized. This would throw an "Unknown column"
exception. (Bug #19681348, Bug #19934324, Bug #72004)

* A memory leak was fixed. (Bug #19467233, Bug #19474480,
Bug #19474510, Bug #73122)

* The CreateUser function did not trim whitespace before
storing values into the database, while MembershipUser
did return trimmed values. The trimming is now performed
before the data is stored. (Bug #19459461, Bug #73411)

* "LINQ to Entities" queries that used Views with the Take
operator were not correctly generated. This problem
affected EF "Database First" scenarios. (Bug #19356006,
Bug #19789288, Bug #72148)


The documentation is available at:
http://dev.mysql.com/doc/connector-net/en/

Nuget packages are available at:
https://www.nuget.org/packages/MySql.Data/6.9.5
https://www.nuget.org/packages/MySql.Data.Entity/6.9.5
https://www.nuget.org/packages/MySql.Fabric/6.9.5
https://www.nuget.org/packages/MySql.Web/6.9.5


Enjoy and thanks for the support!

On behalf of the MySQL Connector/NET and the MySQL/ORACLE RE Team.

Production Server Verses Development Environment (no replies)

$
0
0
My production service provider is running connector/Net version 6.5.4.0 on a Windows host. I would like to run the latest connector/Net. Does my web.config and bin folder take priority over the machine.config? Is there a way the service provider can add something to their machine.config to allow me to run the upgraded version and not affect the reset of their customers on that box?
IE old version=6.5.4.0 new version=6.8.3.0

.net connector with mysql embedded ? (no replies)

$
0
0
would anyone know if the .net connector 6.7.x works with mysql embedded ?

if so could anyone share some sample code/project please

Connector/NET and C#, Mono, .Net (no replies)

$
0
0
Estoy tratando de conectar .Net con MySQL, el servidor de mi base de datos es un servidor publico que no puedo hacer mayores cambios he tratado por distintos medios de conectar pero me sale el siguiente error:"authentication with old password no longer supported use 4.1 style passwords".

En mi laptop tengo instalador Workbench y con Workbench si logro conectarme pero habilitando la opción Use the old authentication protocol, pero desde .net no se que parámetro o que atributo debo mover o poner en mi cadena de conexión para que me funcione.

Por favor ayúdenme estoy tratando de salir ya con el proyecto.

Extremely long SQL statement for fairly simple query (no replies)

$
0
0
Hi, I have the latest connector and am using MySQL and EF6. I am trying to request an entity with some of it's children (so trying to force loading).

My LINQ query is

return await (from b in db.PermissionGateways
where b.UserId == UserID
orderby b.ID
select b)
.Include(I => I.Gateway.Statuses)
.Include(I => I.Gateway.Locations)
.ToListAsync();

However I get the error

-- Failed in 921 ms with error: Unknown column 'Join2.GatewayId' in 'where clause'

However I do not see Join2 defined anywhere... Any help please!!!


Below is the SQL generated

SELECT
`UnionAll1`.`ID` AS `C1`,
`UnionAll1`.`ID1` AS `C2`,
`UnionAll1`.`ID2` AS `C3`,
`UnionAll1`.`ID3` AS `C4`,
`UnionAll1`.`UserId` AS `C5`,
`UnionAll1`.`AccessLevel` AS `C6`,
`UnionAll1`.`GatewayId` AS `C7`,
`UnionAll1`.`UTCCreated` AS `C8`,
`UnionAll1`.`UTCModified` AS `C9`,
`UnionAll1`.`ID4` AS `C10`,
`UnionAll1`.`Discriminator` AS `C11`,
`UnionAll1`.`ID5` AS `C12`,
`UnionAll1`.`SerialNumber` AS `C13`,
`UnionAll1`.`UTCCreated1` AS `C14`,
`UnionAll1`.`UTCModified1` AS `C15`,
`UnionAll1`.`ProductName` AS `C16`,
`UnionAll1`.`HardwareVer` AS `C17`,
`UnionAll1`.`IMEI` AS `C18`,
`UnionAll1`.`OS` AS `C19`,
`UnionAll1`.`GatewayJobsLastRun_ID` AS `C20`,
`UnionAll1`.`C1` AS `C21`,
`UnionAll1`.`Discriminator1` AS `C22`,
`UnionAll1`.`ID6` AS `C23`,
`UnionAll1`.`GatewayId1` AS `C24`,
`UnionAll1`.`GatewayVer` AS `C25`,
`UnionAll1`.`GatewayClock` AS `C26`,
`UnionAll1`.`UTCCreated2` AS `C27`,
`UnionAll1`.`UTCModified2` AS `C28`,
`UnionAll1`.`SIMCCID` AS `C29`,
`UnionAll1`.`SignalDbm` AS `C30`,
`UnionAll1`.`C2` AS `C31`,
`UnionAll1`.`C3` AS `C32`,
`UnionAll1`.`C4` AS `C33`,
`UnionAll1`.`C5` AS `C34`,
`UnionAll1`.`C6` AS `C35`,
`UnionAll1`.`C7` AS `C36`,
`UnionAll1`.`C8` AS `C37`
FROM
((SELECT
CASE
WHEN (`Apply1`.`ID` IS NULL) THEN (NULL)
ELSE (1)
END AS `C1`,
`Apply1`.`ID`,
`Apply1`.`ID2` AS `ID1`,
`Apply1`.`ID` AS `ID2`,
`Apply1`.`ID` AS `ID3`,
`Apply1`.`UserId`,
`Apply1`.`AccessLevel`,
`Apply1`.`GatewayId`,
`Apply1`.`UTCCreated`,
`Apply1`.`UTCModified`,
`Apply1`.`ID` AS `ID4`,
`Apply1`.`Discriminator`,
`Apply1`.`ID1` AS `ID5`,
`Apply1`.`SerialNumber`,
`Apply1`.`UTCCreated1`,
`Apply1`.`UTCModified1`,
`Apply1`.`ProductName`,
`Apply1`.`HardwareVer`,
`Apply1`.`IMEI`,
`Apply1`.`OS`,
`Apply1`.`GatewayJobsLastRun_ID`,
`Apply1`.`Discriminator` AS `Discriminator1`,
`Apply1`.`ID` AS `ID6`,
`Apply1`.`GatewayId` AS `GatewayId1`,
`Apply1`.`GatewayVer`,
`Apply1`.`GatewayClock`,
`Apply1`.`UTCCreated` AS `UTCCreated2`,
`Apply1`.`UTCModified` AS `UTCModified2`,
`Apply1`.`SIMCCID`,
`Apply1`.`SignalDbm`,
NULL AS `C2`,
NULL AS `C3`,
NULL AS `C4`,
NULL AS `C5`,
NULL AS `C6`,
NULL AS `C7`,
NULL AS `C8`
FROM
(SELECT
`Project1`.`ID`,
`Project1`.`UserId`,
`Project1`.`AccessLevel`,
`Project1`.`GatewayId`,
`Project1`.`UTCCreated`,
`Project1`.`UTCModified`,
`Project1`.`ID1`,
`Project1`.`SerialNumber`,
`Project1`.`UTCCreated1`,
`Project1`.`UTCModified1`,
`Project1`.`ProductName`,
`Project1`.`HardwareVer`,
`Project1`.`IMEI`,
`Project1`.`OS`,
`Project1`.`Discriminator`,
`Project1`.`ID2`,
`Project1`.`GatewayJobsLastRun_ID`,
(SELECT
`Filter2`.`ID`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `ID3`,
(SELECT
`Filter2`.`GatewayId`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `GATEWAYID1`,
(SELECT
`Filter2`.`GatewayVer`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `GatewayVer`,
(SELECT
`Filter2`.`GatewayClock`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `GatewayClock`,
(SELECT
`Filter2`.`UTCCreated`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `UTCCREATED2`,
(SELECT
`Filter2`.`UTCModified`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `UTCMODIFIED2`,
(SELECT
`Filter2`.`SIMCCID`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `SIMCCID`,
(SELECT
`Filter2`.`SignalDbm`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `SignalDbm`,
(SELECT
`Filter2`.`Discriminator`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `DISCRIMINATOR1`,
(SELECT
`Filter2`.`ID1`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `ID11`,
(SELECT
`Filter2`.`SerialNumber`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `SERIALNUMBER1`,
(SELECT
`Filter2`.`UTCCREATED1`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `UTCCREATED11`,
(SELECT
`Filter2`.`UTCMODIFIED1`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `UTCMODIFIED11`,
(SELECT
`Filter2`.`ProductName`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `PRODUCTNAME1`,
(SELECT
`Filter2`.`HardwareVer`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `HARDWAREVER1`,
(SELECT
`Filter2`.`IMEI`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `IMEI1`,
(SELECT
`Filter2`.`OS`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `OS1`,
(SELECT
`Filter2`.`DISCRIMINATOR1`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `DISCRIMINATOR11`,
(SELECT
`Filter2`.`GatewayJobsLastRun_ID`
FROM
(SELECT
`Extent4`.`ID`,
`Extent4`.`GatewayId`,
`Extent4`.`GatewayVer`,
`Extent4`.`GatewayClock`,
`Extent4`.`UTCCreated`,
`Extent4`.`UTCModified`,
`Extent4`.`SIMCCID`,
`Extent4`.`SignalDbm`,
`Extent4`.`Discriminator`,
`Extent5`.`ID` AS `ID1`,
`Extent5`.`SerialNumber`,
`Extent5`.`UTCCreated` AS `UTCCREATED1`,
`Extent5`.`UTCModified` AS `UTCMODIFIED1`,
`Extent5`.`ProductName`,
`Extent5`.`HardwareVer`,
`Extent5`.`IMEI`,
`Extent5`.`OS`,
`Extent5`.`Discriminator` AS `DISCRIMINATOR1`,
`Extent5`.`GatewayJobsLastRun_ID`
FROM
`GatewaySyncStatus` AS `Extent4`
INNER JOIN `Gateway` AS `Extent5` ON `Extent5`.`ID` = `Extent4`.`GatewayId`
WHERE
((`Extent5`.`Discriminator` = @gp5)
OR (`Extent5`.`Discriminator` = @gp6))
AND (`Join2`.`GatewayId` = `Extent5`.`ID`)) AS `Filter2`
WHERE
(`Filter2`.`Discriminator` = @gp7)
OR (`Filter2`.`Discriminator` = @gp8)) AS `GATEWAYJOBSLASTRUN_ID1`
FROM
(SELECT
`Extent1`.`ID`,
`Extent1`.`UserId`,
`Extent1`.`AccessLevel`,
`Extent1`.`GatewayId`,
`Extent1`.`UTCCreated`,
`Extent1`.`UTCModified`,
`Extent2`.`ID` AS `ID1`,
`Extent2`.`SerialNumber`,
`Extent2`.`UTCCreated` AS `UTCCreated1`,
`Extent2`.`UTCModified` AS `UTCModified1`,
`Extent2`.`ProductName`,
`Extent2`.`HardwareVer`,
`Extent2`.`IMEI`,
`Extent2`.`OS`,
`Extent2`.`Discriminator`,
`Extent3`.`ID` AS `ID2`,
`Extent3`.`GatewayJobsLastRun_ID`
FROM
`PermissionGateway` AS `Extent1`
LEFT OUTER JOIN `Gateway` AS `Extent2` ON ((`Extent2`.`Discriminator` = @gp1)
OR (`Extent2`.`Discriminator` = @gp2))
AND (`Extent1`.`GatewayId` = `Extent2`.`ID`)
LEFT OUTER JOIN `Gateway` AS `Extent3` ON ((`Extent3`.`Discriminator` = @gp3)
OR (`Extent3`.`Discriminator` = @gp4))
AND (`Extent1`.`GatewayId` = `Extent3`.`ID`)
WHERE
`Extent1`.`UserId` = @p__linq__0) AS `Project1`) AS `Apply1`) UNION ALL (SELECT
2 AS `C1`,
`Project3`.`ID2` AS `ID`,
`Project3`.`ID4` AS `ID1`,
`Project3`.`ID2`,
`Project3`.`ID2` AS `ID3`,
`Project3`.`UserId`,
`Project3`.`AccessLevel`,
`Project3`.`GatewayId1` AS `GatewayId`,
`Project3`.`UTCCreated1` AS `UTCCreated`,
`Project3`.`UTCModified1` AS `UTCModified`,
`Project3`.`ID2` AS `ID4`,
`Project3`.`Discriminator1` AS `Discriminator`,
`Project3`.`ID3` AS `ID5`,
`Project3`.`SerialNumber`,
`Project3`.`UTCCreated2` AS `UTCCreated1`,
`Project3`.`UTCModified2` AS `UTCModified1`,
`Project3`.`ProductName`,
`Project3`.`HardwareVer`,
`Project3`.`IMEI`,
`Project3`.`OS`,
`Project3`.`GatewayJobsLastRun_ID`,
NULL AS `C2`,
NULL AS `C3`,
NULL AS `C4`,
NULL AS `C5`,
NULL AS `C6`,
NULL AS `C7`,
NULL AS `C8`,
NULL AS `C9`,
NULL AS `C10`,
`Project3`.`ID` AS `ID6`,
`Project3`.`GatewayId` AS `GatewayId1`,
`Project3`.`Longitude`,
`Project3`.`Latitude`,
`Project3`.`Accuracy`,
`Project3`.`UTCCreated` AS `UTCCreated2`,
`Project3`.`UTCModified` AS `UTCModified2`
FROM
(SELECT
`Join6`.`ID`,
`Join6`.`GatewayId`,
`Join6`.`Longitude`,
`Join6`.`Latitude`,
`Join6`.`Accuracy`,
`Join6`.`UTCCreated`,
`Join6`.`UTCModified`,
`Join6`.`ID1`,
`Join6`.`Discriminator`,
`Extent6`.`ID` AS `ID2`,
`Extent6`.`UserId`,
`Extent6`.`AccessLevel`,
`Extent6`.`GatewayId` AS `GatewayId1`,
`Extent6`.`UTCCreated` AS `UTCCreated1`,
`Extent6`.`UTCModified` AS `UTCModified1`,
`Extent7`.`ID` AS `ID3`,
`Extent7`.`SerialNumber`,
`Extent7`.`UTCCreated` AS `UTCCreated2`,
`Extent7`.`UTCModified` AS `UTCModified2`,
`Extent7`.`ProductName`,
`Extent7`.`HardwareVer`,
`Extent7`.`IMEI`,
`Extent7`.`OS`,
`Extent7`.`Discriminator` AS `Discriminator1`,
`Extent8`.`ID` AS `ID4`,
`Extent8`.`GatewayJobsLastRun_ID`
FROM
`PermissionGateway` AS `Extent6`
LEFT OUTER JOIN `Gateway` AS `Extent7` ON ((`Extent7`.`Discriminator` = @gp9)
OR (`Extent7`.`Discriminator` = @gp10))
AND (`Extent6`.`GatewayId` = `Extent7`.`ID`)
LEFT OUTER JOIN `Gateway` AS `Extent8` ON ((`Extent8`.`Discriminator` = @gp11)
OR (`Extent8`.`Discriminator` = @gp12))
AND (`Extent6`.`GatewayId` = `Extent8`.`ID`)
INNER JOIN (SELECT
`Extent9`.`ID`,
`Extent9`.`GatewayId`,
`Extent9`.`Longitude`,
`Extent9`.`Latitude`,
`Extent9`.`Accuracy`,
`Extent9`.`UTCCreated`,
`Extent9`.`UTCModified`,
`Extent10`.`ID` AS `ID1`,
`Extent10`.`SerialNumber`,
`Extent10`.`UTCCreated` AS `UTCCREATED1`,
`Extent10`.`UTCModified` AS `UTCMODIFIED1`,
`Extent10`.`ProductName`,
`Extent10`.`HardwareVer`,
`Extent10`.`IMEI`,
`Extent10`.`OS`,
`Extent10`.`Discriminator`,
`Extent10`.`GatewayJobsLastRun_ID`
FROM
`GatewayLocation` AS `Extent9`
INNER JOIN `Gateway` AS `Extent10` ON `Extent10`.`ID` = `Extent9`.`GatewayId`) AS `Join6` ON ((`Join6`.`Discriminator` = @gp13)
OR (`Join6`.`Discriminator` = @gp14))
AND (`Extent6`.`GatewayId` = `Join6`.`ID1`)
WHERE
`Extent6`.`UserId` = @p__linq__0) AS `Project3`)) AS `UnionAll1`
ORDER BY `UnionAll1`.`ID` ASC , `UnionAll1`.`ID1` ASC , `UnionAll1`.`ID5` ASC , `UnionAll1`.`C1` ASC

asp problrm with select (1 reply)

$
0
0
Hello,
when I use the following code:
rsOpenStr = "select * from inventory where instr(description," & kwStr &")>0"
rs.Open (rsOpenStr)

if I enter a number in the text box -- 1972 for example, the select statement executes.
If I enter a string -- birds for example, I get the following error:
Unknown column 'birds' in 'where clause'.
If I replace kwStr in the instr function with 'birds' the select statement executes.

Can anyone help please?

too much sleep connections (no replies)

$
0
0
in my app, there're too much sleep connections in mysql; i am using .net Mysql.Data.dll to do the db operation.

At the same time, active connections are few. ex: 10 active with 500 sleep ones.

so is there someone could do the help?

EntityFramework 4.2, used to connect to MySQL DB, is not being uploaded to Azure web instance (no replies)

$
0
0
I have a asp.net C# web application built in VS2010. I am using a MySQL database hosted on Amazon RDS, and Windows Azure to host the instance.

My application is targeting .NET Framework 4.0, and I have installed EntityFramework 4.2 via Nuget package manager. I am using the MySQL Connector .Net v6.9.4.

I run it fine on my local PC, the EntityFramework package seems to have been installed correctly. When I publish the project it to Azure, however, the EntityFramework DLL is not located in the 'bin' folder on the Azure VM.

In my web.config, I have:

<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
</dependentAssembly>

And in the packages.config for the project I am referencing the EF, I have:

<packages>
<package id="EntityFramework" version="4.2.0.0" targetFramework="net40" />
</packages>

but when I try to run my aplication from the cloud, I get the following error:

Could not load file or assembly 'EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Which is quite obvious that it can't be found as it is not being uploaded, for some reason... Why? I have 'Copy Local' set to true for all references of the EF DLL, so am pretty confused why it's not being uploaded to the web instance. Can anyone think of a reason as to why this is not being uploaded to the Azure instance? Is there something I've missed (which is quite possible, I'm a novice when it comes to web app dev)?

NOTE: I am posting this here as this project previously used MSSQL as the database, was using the same version of EF and always worked. But I've had to migrate it to use MySQL (company decision) and now I am facing this issue, so I think some people here may have faced this problem before?

MySQL ASP.NTE MVC 3 Project Template (1 reply)

$
0
0
I am trying to create a project using the "MySQL ASP.NTE MVC 3 Project Template" template in Visual Studio 2010.
I have
MySQL Server 5.6.21
MySQL Workbench 6.2.4
MySQL Notifier 1.1.6
MySQL Visual Studio 1.2.3
MySQL Fabric 1.5.3 & MySQL Utilities 1.5.3
Connector/Net 6.9.3 - errors out when try to upgrade


After going through the entire wizard, and getting the tables I can add to a model.
I click finish, the project gets created, but with an error.
The specified store provider 'MySql.Data.MySqlClient' cannot be found in the configuration, or 'MySql.Data.MySqlClient' is not valid.

Then when i try to add a model to the project, I can't use MySql as a connection.
What am I doing wrong.

Fail on the use of "Contains" collection method in Entity Frameworh 5 and MySql 5.6.21 (1 reply)

$
0
0
Hi, I'm having problems to use Entity FrameWork with MySql..

In my query I use the Contains clauses similarily to "Like" command from MySql, but doesn't works..

I'm using MySql server 5.6.21, latest MySql Connector 6.9.5 and latest MySql for Visual Studio along with Entity Framework 5.0..

Follows my query statement:

Authentication error 4.1 (1 reply)

$
0
0
I have a Windows desktop application written in vb.net coded in Visual Studio 2010. I am migrating it over to Visual Studio 2013 but I am having issues with the MySQL .Net connector in the VS2013. Opening a new project in VS2013 I create a new dataset and when I connect to the hosted MySQL I get the error "Authentication with old password no longer supported, use 4.1 style passwords." The MySQL server hosted is version 5.0.9. The current MySQL .Net connector in VS2013 is 6.5.7. My old VS2010 connector is 6.3.6 and works. I have tried the SQL statements "SET PASSWORD for <username> = PASSWORD('new password')" which I found on many Google searches and that has not worked.

Does Visual Studio Connector work with Windows 8 (4 replies)

$
0
0
Hello,

I have installed the mysql connector for Visual Studio 2013 on a windows 7 machine without any trouble. Now i am trying to install the same connector also with visual studio 2013 on a windows 8 machine bu i can not get it too work. The MySQL connections is not shown in the tools menu to connect to a database.

Are there any issues with windows 8 that i need to consider?

Thanks!

Johan

Queries on server are ten times slower than on client (1 reply)

$
0
0
Hi,

I have MySQL server 5.6 installed on a WHS 2011 system and connect (via .NET) from a Windows 8.1 computer. If I run the exe which executes the sql statements on the server instead of the client (which is much faster than a WHS 2011 server) each query takes about ten times more time to execute as on the client.

In my opinion sql queries are always executed on the server machine but this behaviour is as if the query is executed on the client. Where is my mistake? And how could it be changed?

Thanks in advance.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version (1 reply)

$
0
0
Hi ,

I am using mySQL Connector version 6.9.5 in my MVC4 web project, when i am trying to execute any usermanager commands such as creating a user in the aspnetusers table, i am getting this error message:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM (SELECT
CASE WHEN (`Extent2`.`UserId` IS NULL) THEN (NULL) ELSE (1) END ' at line 33

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM (SELECT
CASE WHEN (`Extent2`.`UserId` IS NULL) THEN (NULL) ELSE (1) END ' at line 33



I am using EF6 version 6.1.2, and mySQL version is : 5.5.4

So i have all latest bits for mysql but i cant get any of the DB operation working on my mvc4 project.

The error seems from the generated sql statement from the MySql.Data.Entity.EF6 assembly that is submitted to the db which has an incorrect syntax!!

Any help is appreciate it!

Thanks a lot.

.NET Connector 6.9.5 breaks Sharepoint on SBS 2011 (1 reply)

$
0
0
Hello, I am a trying to install the mysql-connector-net-6.9.5 on our Small Business Server 2011, so that the .ASP page which we have created will work with the MySQL DB we have on another server.

When I install the connector our .ASP webpage works perfectly... however all other SBS website stop working... i.e. CompanyWeb, SharePoint Administrator. You simply get a message saying: Error. "An unexpected error has occurred. Correlation ID: xxxxxxxxxxxxxxxxx".

From trail and error I can see it's linked to the WebProvider. As soon as I install the WebProvider the SharePoint sites break and the new .ASP page works fine. And as soon as I un-install that component the SBS sites work fine and the .ASP page stops working with a message "Unable to find the requested .Net Framework Data Provider. It may not be installed."

Can anyone suggest as to what could be going on?!

Thanks

Peter

Where is database? (4 replies)

$
0
0
I have to use this string to connect to my database in C#.

connectionString="Server=localhost; database=Flight_log_db; Uid=root; Pwd=admin";
connection=new MySQLConnection

The problem is that this throws an error when I try to open the connection because it does not know what the database is. I used the same name as the database model because I had no choice when I forward engineered the model. But I cannot connect because I get the above error, or when I do not include the database name and I get to the
MySqlCommand cmd = new MySqlCommand(sql, connection);
MySqlDataReader reader = cmd.ExecuteReader();

lines I get the error that no database was selected;

Where is the database?

Move MySQLClient-*.sln on github? (no replies)

$
0
0
Hi,

How about the MySQLClient-*.sln solutions get moved to github?

It would make it a lot easier to contribute to the project.

I know there's probably a lot of legal hoops to jump through but it Microsoft can do it for dotnet surely this project can too.


Cheers,
Sam
Viewing all 1447 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>