none
LinqToDB.Templates RRS feed

  • Question

  • After creating my tt file, copy the text file CopyMe<Sybase>.txt content into it and change the connection string I'm getting the following error: 

    Severity Code Description Project File Line Suppression State
    Error Running transformation: Sybase.Data.AseClient.AseException: The command has timed out.
    at Sybase.Data.AseClient1.AseCommand.CheckResult(Int32 res)
    at Sybase.Data.AseClient1.AseCommand.Execute(CommandBehavior commandBehavior)
    at Sybase.Data.AseClient1.AseCommand._ExecuteReader(CommandBehavior commandBehavior)
    at Sybase.Data.AseClient1.AseCommand.ExecuteReader(CommandBehavior commandBehavior)
    at Sybase.Data.AseClient.AseCommand.ExecuteDbDataReader(CommandBehavior behavior)
    at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
    at LinqToDB.Data.DataConnection.ExecuteReader(CommandBehavior commandBehavior)
    at LinqToDB.Data.CommandInfo.ExecuteReader()
    at LinqToDB.Data.DataConnectionExtensions.ExecuteReader(DataConnection connection, String sql, CommandType commandType, CommandBehavior commandBehavior, DataParameter[] parameters)
    at LinqToDB.DataProvider.Sybase.SybaseSchemaProvider.GetProcedureParameters(DataConnection dataConnection)
    at LinqToDB.SchemaProvider.SchemaProviderBase.GetSchema(DataConnection dataConnection, GetSchemaOptions options)
    at Microsoft.VisualStudio.TextTemplating6158FFC7DCBC0759FC489824BE84D2F035E6B16775C152F3D7EA9341E0F5795EDC3B0439987706D9BB8830FE8C4BCA85975FFD38360E0281105DBCE73027BEFD.GeneratedTextTransformation.LoadServerMetadata(DataConnection dataConnection) in D:\C#_Prototypes\cabralf\DataExtraction\packages\linq2db.Sybase.2.6.4\build..\contentFiles\any\any\LinqToDB.Templates\DataModel.ttinclude:line 103
    at Microsoft.VisualStudio.TextTemplating6158FFC7DCBC0759FC489824BE84D2F035E6B16775C152F3D7EA9341E0F5795EDC3B0439987706D9BB8830FE8C4BCA85975FFD38360E0281105DBCE73027BEFD.GeneratedTextTransformation.LoadMetadata(DataConnection dataConnection) in D:\C#_Prototypes\cabralf_DataExtraction\packages\linq2db.Sybase.2.6.4\build..\contentFiles\any\any\LinqToDB.Templates\DataModel.ttinclude:line 415
    at Microsoft.VisualStudio.TextTemplating6158FFC7DCBC0759FC489824BE84D2F035E6B16775C152F3D7EA9341E0F5795EDC3B0439987706D9BB8830FE8C4BCA85975FFD38360E0281105DBCE73027BEFD.GeneratedTextTransformation.LoadSybaseMetadata(String connectionString) in D:\C#__Prototypes\cabralf_DataExtraction\packages\linq2db.Sybase.2.6.4\build..\contentFiles\any\any\LinqToDB.Templates\LinqToDB.Sybase.ttinclude:line 71
    at Microsoft.VisualStudio.TextTemplating6158FFC7DCBC0759FC489824BE84D2F035E6B16775C152F3D7EA9341E0F5795EDC3B0439987706D9BB8830FE8C4BCA85975FFD38360E0281105DBCE73027BEFD.GeneratedTextTransformation.TransformText() in D:\C#__Prototypes\cabralf_DataExtraction_DataExtraction\DTO\Raw\CopyMe.Sybase.tt:line 45 D:\C#__Prototypes\cabralf_DataExtraction\packages\linq2db.Sybase.2.6.4\build..\contentFiles\any\any\LinqToDB.Templates\DataModel.ttinclude 103

    Tuesday, January 7, 2020 6:13 AM

Answers

  • Hi Fcabralj,

    Thank you for posting here.

    I'm afraid we can't reproduce your problem with only error messages.

    So I have some questions want to confirm:

    1. Can you provide some code that can reproduce the problem?

    2. What is "tt file"?

    3. What is the content of "CopyMe <Sybase> .txt"? (We don't need real data, some test data is sufficient.)

    I look forward to your reply.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by FcabralJ Tuesday, January 7, 2020 11:03 AM
    Tuesday, January 7, 2020 7:43 AM

All replies

  • Hi Fcabralj,

    Thank you for posting here.

    I'm afraid we can't reproduce your problem with only error messages.

    So I have some questions want to confirm:

    1. Can you provide some code that can reproduce the problem?

    2. What is "tt file"?

    3. What is the content of "CopyMe <Sybase> .txt"? (We don't need real data, some test data is sufficient.)

    I look forward to your reply.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by FcabralJ Tuesday, January 7, 2020 11:03 AM
    Tuesday, January 7, 2020 7:43 AM
  • We can close the topic, only to get it clear the problem I was using the old linqPackage, so I downloaded it again and included to not get the procedureScheme in the TT files.

    Timon Yang the tt files are part of this package https://github.com/linq2db/linq2db/tree/master/Source/LinqToDB.Templates which help us generating classes using Linq. 

    Tuesday, January 7, 2020 11:05 AM