2009-07-09 6 views
0

私はSubsoinc 3.0.0.1をmysql dbに接続しようとしています。SubsonicはMySQL(5.0.51a)で動作しません

私はその後、私は私の解決策と、編集された名前空間と接続文字列でフォルダへのActiveRecordフォルダからテンプレートをコピーしたが、その後、私はこのエラーを取得

をapp.configをするdllファイルの参照および接続文字列を追加しました:

Error 10 Running transformation: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.VisualStudio.TextTemplatingB345C0F834877921095C8F23912FC356.GeneratedTextTransformation.GetReader(String sql) at Microsoft.VisualStudio.TextTemplatingB345C0F834877921095C8F23912FC356.GeneratedTextTransformation.LoadTables() at Microsoft.VisualStudio.TextTemplatingB345C0F834877921095C8F23912FC356.GeneratedTextTransformation.TransformText() C:\Users\Hex\Documents\Visual Studio 2008\Projects\Ceger\Ceger.DAL\Models\Structs.tt 1 1

それから、私はTemplateProvidersでMySQL.ttincludeとSettings.ttincludeを見つけて、ActiveRecordからファイルに置き換えましたが、それはすべてを変更しませんでした。

LinqTemplatesでも試しました。 README同様

答えて

0

今私はそれを得ました。 私は、MySQL.ttincludeの名前をSQLServer.ttincludeに変更するか、すべてのファイル内のすべての参照をSQLServer.ttincludeからMySQL.ttincludeに変更する必要があります。

とTemplateProvedersフォルダのSettings.ttincludeは必要ありません。 (それは3.0.0.2から削除されました)

0

あなたはTemplateProvidersフォルダにMySQL.ttincludeを使用する必要があります:)と言う...

+0

RTFA :) "その後、私はTemplateProvidersでMySQL.ttincludeとSettings.ttincludeを見つけ、ActiveRecordのファイルをそれらに置き換えましたが、それはすべて変更されませんでした。 –

関連する問題