为firebird数据库生成实体框架工作模型时出错?

时间:2018-06-27 18:12:04

标签: c# entity-framework entity-framework-6 firebird firebird-2.0

我在Visual Studio 2017中安装了firebird提供程序,当我首先尝试从数据库生成模型代码时,我可以在服务器资源管理器中看到表,我找到了提供程序并很好地测试了连接字符串 当我选择数据表并按下一步开始生成模型时,出现错误 enter image description here

输出为

  

由于以下异常而无法生成模型:'System.Data.Entity.Core.EntityCommandExecutionException:执行命令定义时发生错误。有关详细信息,请参见内部异常。 ---> FirebirdSql.Data.FirebirdClient.FbException:动态SQL错误   SQL错误代码= -104   令牌未知-第50行,第14列   位置---> FirebirdSql.Data.Common.IscException:动态SQL错误   SQL错误代码= -104   令牌未知-第50行,第14列   位置      在FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ProcessResponse(IResponse响应)      在FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadResponse()      在FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadGenericResponse()      在FirebirdSql.Data.Client.Managed.Version10.GdsStatement.Prepare(String commandText)      在FirebirdSql.Data.FirebirdClient.FbCommand.Prepare(布尔returnSet)      在FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteCommand(CommandBehavior行为,布尔returnSet)      在FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior行为)      ---内部异常堆栈跟踪的结尾---      在FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior行为)      在FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteDbDataReader(CommandBehavior行为)      在System.Data.Common.DbCommand.ExecuteReader(CommandBehavior行为)      在System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.b__c(DbCommand t,DbCommandInterceptionContext 1 c) at System.Data.Entity.Infrastructure.Interception.InternalDispatcher 1.Dispatch [TTarget,TInterceptionContext,TResult](TTarget target,Func 3 operation, TInterceptionContext interceptionContext, Action 3正在执行,操作{{ 1}} 2个orderByFunc,DataTable表,EntityStoreSchemaFilterObjectTypes queryTypes,IEnumerable 3 executed) at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext) at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) --- End of inner exception stack trace --- at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.Execute(EntityCommand entityCommand, CommandBehavior behavior) at System.Data.Entity.Core.EntityClient.EntityCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadDataTable[T](String sql, Func 1个过滤器)      Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadStoreSchemaDetails中的错误(IList 1 filters, String[] filterAliases) at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadTableDetails(IEnumerable 1错误)      在Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModels(字符串storeModelNamespace,ModelBuilderSettings设置,列出1错误)      在Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModel(ModelBuilderSettings设置,IVsUtils vsUtils,ModelBuilderEngineHostContext hostContext)中)。   从数据库加载元数据花费了00:00:00.4765840。   生成模型的时间为00:00:27.8739728。

我的连接字符串为1 filters) at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GetStoreSchemaDetails(StoreSchemaConnectionFactory connectionFactory) at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.CreateStoreModel() at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GenerateModel(List

我的配置   FirebirdSql.Data.FirebirdClient 6.0.0
  EntityFramework.Firebird 6.0.0   实体框架6.2.0   Firebird-2.0.0.12748-0-Win32 //我知道它是旧版本,但不幸的是我无法更改它,因为我不是数据库的所有者

0 个答案:

没有答案