3

我正在使用 t4 模板为 Firebird 数据库(嵌入式)制作数据访问层

我正在研究 64 位系统。编译/调试选项 AnyCPU (Windows 7 64bit) Visual Studio 2010

我在 C# 环境中编写代码并对其进行测试,它与 firebird.client 和 fembed 一起工作正常。

但是当我将相同的代码放入 t4 模板并执行时,我收到以下错误消息。

Blockquote 错误 1 ​​运行转换:System.BadImageFormatException:尝试加载格式不正确的程序。(HRESULT 异常:0x8007000B)在 FB_965910463_Class.isc_attach_database(IntPtr[] statusVector, Int16 dbNameLength, Byte[] dbName, Int32& dbHandle, Int16 parmBufferLength, Byte[] parmBuffer) 在 FB_965910463_Class.IFbClient.isc_attach_database , Byte[] dbName, Int32& dbHandle, Int16 parmBufferLength, Byte[] parmBuffer) 在 FirebirdSql.Data.Client.Native.FesDatabase.Attach(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String database) 在 FirebirdSql.Data.FirebirdClient.FbConnectionInternal .Connect() 在 FirebirdSql.Data.FirebirdClient.FbConnectionPool.Create() 在 FirebirdSql.Data.FirebirdClient。

4

0 回答 0