How can I fix it: " 'VARBINARY' is not a supported type for CAST" ?
Hi all,
I trying build a project with .NET and Entity Framework in the Code First method, but Caché return the error " 'VARBINARY' is not a supported type for CAST" when run this sql code:
INSERT "dbo"."__MigrationHistory" ( "MigrationId", "ContextKey", "Model", "ProductVersion" ) VALUES ( '201706131048154_InitialCreate', 'CACHE2.SchoolContext', cast( 0x1F8B0800000000000400CD59CD6EE33610BE17E83B083A1 ... d89cc74ff4e1285e7df81769242ce52e1f0000 AS varbinary(1549)), '6.1.3-40302' )
I did all process of this link: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GBMP_eframe#GBMP_eframe_codefirst.
This SQL was generated by Entity Framework.
I'm using Caché 2015.2.5 version
How I fix it?