如何通过实体框架-code首先在SQL中保存2d数组? [英] How can I save 2d array in SQL by entity framework -code first ?
本文介绍了如何通过实体框架-code首先在SQL中保存2d数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i have an Entity and i want save a 2D array like below:
class位置
{
public int Id {get;组; }
public string Name {get;组; }
public int [,] Locations {get;组; }
}
我不知道该怎么办!!
我尝试了什么:
i希望存储2D数组sql by Code-First !!
class Location
{
public int Id { get; set; }
public string Name { get; set; }
public int[,] Locations { get; set; }
}
i don't know what should i do!!
What I have tried:
i want to store 2D array in sql by Code-First!!
推荐答案
c# - 如何通过Entity Framework存储变量2D数组? - 堆栈溢出 [ ^ ]
查看此链接
c# - How to store variable 2D array via Entity Framework? - Stack Overflow[^]
Have a look at this link
这篇关于如何通过实体框架-code首先在SQL中保存2d数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文