EF Core Query
Posted: Sat 10 Dec 2016 21:33
I downloaded Entity Developer version 6.0.147 and using MySQL Connector/Net version 7.0.6 with EF Core. When I create a new query on the model, I get the following error:
I wasn't able to find the documentation reference, but instead I copied the following files into the application folder:
Microsoft.EntityFrameworkCore.dll
Microsoft.EntityFrameworkCore.Relational.dll
Microsoft.Extensions.Caching.Abstractions.dll
Microsoft.Extensions.Caching.Memory.dll
Microsoft.Extensions.DependencyInjection.Abstractions.dll
Microsoft.Extensions.DependencyInjection.dll
Microsoft.Extensions.Logging.Abstractions.dll
Microsoft.Extensions.Logging.dll
Microsoft.Extensions.Options.dll
Microsoft.Extensions.Primitives.dll
MySql.Data.dll
MySql.Data.EntityFrameworkCore.dll
Remotion.Linq.dll
System.Collections.Immutable.dll
System.Diagnostics.DiagnosticSource.dll
System.Interactive.Async.dll
However, then I got the following error and I got stuck here since I also copied that assembly to the folder but it made no difference. Any suggestions, or wait for a new release to fix this?
Also, when using the Retrieve Data on a table from the Database Explorer context menu, I get the following exception:
Code: Select all
Could not find the assembly 'Microsoft.EntityFrameworkCore.dll'. Specify the paths to the required assemblies in the EntityDeveloper.exe.config file. For more information please see the documentation.
Microsoft.EntityFrameworkCore.dll
Microsoft.EntityFrameworkCore.Relational.dll
Microsoft.Extensions.Caching.Abstractions.dll
Microsoft.Extensions.Caching.Memory.dll
Microsoft.Extensions.DependencyInjection.Abstractions.dll
Microsoft.Extensions.DependencyInjection.dll
Microsoft.Extensions.Logging.Abstractions.dll
Microsoft.Extensions.Logging.dll
Microsoft.Extensions.Options.dll
Microsoft.Extensions.Primitives.dll
MySql.Data.dll
MySql.Data.EntityFrameworkCore.dll
Remotion.Linq.dll
System.Collections.Immutable.dll
System.Diagnostics.DiagnosticSource.dll
System.Interactive.Async.dll
However, then I got the following error and I got stuck here since I also copied that assembly to the folder but it made no difference. Any suggestions, or wait for a new release to fix this?
Code: Select all
The result of model generation or query syntax is not valid.
Failed to compile and load the working library with the model.
Error List:
error1 : The type 'System.Linq.IQueryable`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Linq.Expressions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
error2 : The type 'System.Linq.IQueryable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Linq.Expressions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.Code: Select all
Message: Object reference not set to an instance of an object.
Source: EntityDeveloper.Common
TargetSite: System.Data.Common.DbDataAdapter GetDataAdapter(System.String, System.String, System.String ByRef)
HelpLink:
Type: System.NullReferenceException
Stack:
at EntityDeveloper.Vendor.GetDataAdapter(String schemaName, String tablename, String& readOnlyMessage)
at EntityDeveloper.ModelDialogProvider.ShowTablePreviewData(String schema, String name)
at EntityDeveloper.gh.g(Object A_0, ItemClickEventArgs A_1)