EF 6 , C# struct To SqlServer column

GuoLearn 251 Reputation points
2023-12-22T11:27:02.0133333+00:00

123

The C# int ZDelay and bool OpenAir ,When EF Map to SQLServer have the column int and bool ,

Could you tell me Is there any way to make SQLServer Table have a column to define The Vector2?

SQL Server | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Olaf Helper 47,586 Reputation points
    2023-12-22T12:25:52.0966667+00:00

    By default SQL Server supports only scalar datatype, not complexe ones, see Data types (Transact-SQL)

    It is possible to implement a complexe data type as CLR as it was done with type hierachie, geometry; but thats a lot of work and EF would not support it; so no way to go.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.