Storing C# data structure into a SQL database

前端 未结 7 2069
半阙折子戏
半阙折子戏 2021-02-01 10:02

I am new to the world of ASP.NET and SQL server, so please pardon my ignorance ...

If I have a data structure in C# (for e.g. let\'s just say, a vector that stores some

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 10:23

    I have more experience with relational databases than c#, but binary serialization is an acceptable way to go, as it allows the entire object's state to be saved into the database. XML serialization is pretty much the same, although generic types are not allowed.

提交回复
热议问题