例外:LINQ to Entities中不支持指定的类型成员'LineColor'

时间:2017-09-26 14:05:57

标签: c# entity-framework linq

使用linq

在byte []中赋值时,我遇到了异常

“LINQ to Entities不支持指定的类型成员'LineColor'。仅支持初始值设定项,实体成员和实体导航属性。”

下面是代码

'r' - Open file for reading. An exception occurs if the file does not exist.
'r+' - Open file for reading and writing. An exception occurs if the file does not exist.
'w' - Open file for writing. The file is created (if it does not exist) or truncated (if it exists).
'w+' - Open file for reading and writing. The file is created (if it does not exist) or truncated (if it exists).
'a' - Open file for appending. The file is created if it does not exist.
'a+' - Open file for reading and appending. The file is created if it does not exist.

这里我的LineColor是byte []

请帮助解决此异常

提前致谢

0 个答案:

没有答案