Storing C# data structure into a SQL database

前端 未结 7 2136
半阙折子戏
半阙折子戏 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:30

    Assuming the objects are marked with [Serializable] or implement ISerializable the the BinaryFormatter class gives a simple way to do this.

    If not, you're looking at (non trivial) custom code.

提交回复
热议问题