无法将类型'string'隐式转换为'System.Collections.Generic.ICollection <WebApplication2.Entry>'

Regeme

我使用了ado.net实体框架来连接数据库,并在项目中拥有一个.edmx文件。这个错误。标题是数据库中的一个表,条目是另一个表的数据,但是由于两个表都有关系,因此我可以看到标题下的条目。我需要做什么?我什么都不懂..谢谢你的帮助,这是情况

Title a = new Title 
{ 
 Entries=textarea.InnerText,
};
达米斯

尝试以下操作,您需要entry通过提供正确的属性值来初始化您的商品的收藏

Title a = new Title 
{ 
 Entries= new List<Entry>()
    {
      new  Entry() {PropertyName =textarea.InnerText}
    };
};

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法将类型隐式转换为'System.Collections.Generic.List

来自分类Dev

无法将类型'System.Collections.Generic.IEnumerable隐式转换为System.Collections.Generic.IEnumerable <TiendaDeportes.producto>

来自分类Dev

无法将类型'void'隐式转换为'System.Collections.Generic.List <string>'

来自分类Dev

无法将类型'System.Collections.Generic.List <>'隐式转换为'System.Collections.Generic.IList <>'

来自分类Dev

无法将类型'int'隐式转换为'System.Collections.Generic.List <QuickTest.Stock>'

来自分类Dev

无法将类型'System.Linq.IQueryable'隐式转换为'System.Collections.Generic.List'

来自分类Dev

无法将类型'System.Collections.IList'隐式转换为'System.Collections.Generic.List

来自分类Dev

无法将类型'System.Collections.Generic.List <String>'隐式转换为'System.Collections.Generic.IEnumerable <turon.Model.Products_Products>

来自分类Dev

无法将类型System.Linq.IQueryable隐式转换为System Collections.Generic.IEnumerable

来自分类Dev

无法将类型System.Collections.Generic.List <IEnumerable>隐式转换为<IEnumerable

来自分类Dev

无法将类型'System.Collections.Generic.List <MODEL#1>'隐式转换为'System.Collections.Generic.List <Model#2>

来自分类Dev

无法将类型“ void”隐式转换为“ System.Collections.Generic.List”以用于返回语句

来自分类Dev

CS0266无法将类型'System.Collections.Generic.IEnumerable <char>'隐式转换为'string'

来自分类Dev

无法将类型'System.Collections.Generic.List <string>'隐式转换为'System.Collections.Generic.IList <LM_WebApi.Controllers.Items>

来自分类Dev

无法隐式转换类型'System.Collections.Generic.IEnumerable <System.Collections.Generic.ICollection

来自分类Dev

无法将类型'System.Web.Mvc.SelectList'隐式转换为'System.Collections.Generic.ICollection <System.Web.Mvc.SelectList>'

来自分类Dev

无法将类型'System.Collections.Generic.List'隐式转换为'string'

来自分类Dev

无法将类型'System.Collections.Generic.List <System.Data.DataRow>'隐式转换为'System.Collections.Generic.List <string>'

来自分类Dev

无法将类型'System.Collections.Generic.List <AnonymousType#1>'隐式转换为'System.Collections.Generic.List <string>'

来自分类Dev

无法将类型System.Collections.Generic.Ienumerable <string>隐式转换为system.Linq.IOrderedEnumerable <AnonymousType#1>

来自分类Dev

无法将类型'System.Collections.Generic.List <AnonymousType#1>'隐式转换为'System.Collections.Generic.List

来自分类Dev

无法将类型'void'隐式转换为'System.Collections.Generic.Dictionary <string,bool>

来自分类Dev

无法将类型'System.Collections.Generic.List <>'隐式转换为'System.Collections.Generic.IList <>'

来自分类Dev

无法将类型'System.Collections.Generic.IEnumerable <string>隐式转换为字符串

来自分类Dev

无法将类型'System.Linq.IQueryable'隐式转换为'System.Collections.Generic.List

来自分类Dev

无法将类型“System.Collections.Generic.List<<匿名类型:>>”隐式转换为“System.Collections.Generic.List”

来自分类Dev

无法将匿名类型隐式转换为 System.Collections.Generic.List

来自分类Dev

无法将类型“System.Collections.Generic.List<Object>”隐式转换为“string”

来自分类Dev

无法将类型“字符串”隐式转换为“System.Collections.Generic.List<int>”

Related 相关文章

  1. 1

    无法将类型隐式转换为'System.Collections.Generic.List

  2. 2

    无法将类型'System.Collections.Generic.IEnumerable隐式转换为System.Collections.Generic.IEnumerable <TiendaDeportes.producto>

  3. 3

    无法将类型'void'隐式转换为'System.Collections.Generic.List <string>'

  4. 4

    无法将类型'System.Collections.Generic.List <>'隐式转换为'System.Collections.Generic.IList <>'

  5. 5

    无法将类型'int'隐式转换为'System.Collections.Generic.List <QuickTest.Stock>'

  6. 6

    无法将类型'System.Linq.IQueryable'隐式转换为'System.Collections.Generic.List'

  7. 7

    无法将类型'System.Collections.IList'隐式转换为'System.Collections.Generic.List

  8. 8

    无法将类型'System.Collections.Generic.List <String>'隐式转换为'System.Collections.Generic.IEnumerable <turon.Model.Products_Products>

  9. 9

    无法将类型System.Linq.IQueryable隐式转换为System Collections.Generic.IEnumerable

  10. 10

    无法将类型System.Collections.Generic.List <IEnumerable>隐式转换为<IEnumerable

  11. 11

    无法将类型'System.Collections.Generic.List <MODEL#1>'隐式转换为'System.Collections.Generic.List <Model#2>

  12. 12

    无法将类型“ void”隐式转换为“ System.Collections.Generic.List”以用于返回语句

  13. 13

    CS0266无法将类型'System.Collections.Generic.IEnumerable <char>'隐式转换为'string'

  14. 14

    无法将类型'System.Collections.Generic.List <string>'隐式转换为'System.Collections.Generic.IList <LM_WebApi.Controllers.Items>

  15. 15

    无法隐式转换类型'System.Collections.Generic.IEnumerable <System.Collections.Generic.ICollection

  16. 16

    无法将类型'System.Web.Mvc.SelectList'隐式转换为'System.Collections.Generic.ICollection <System.Web.Mvc.SelectList>'

  17. 17

    无法将类型'System.Collections.Generic.List'隐式转换为'string'

  18. 18

    无法将类型'System.Collections.Generic.List <System.Data.DataRow>'隐式转换为'System.Collections.Generic.List <string>'

  19. 19

    无法将类型'System.Collections.Generic.List <AnonymousType#1>'隐式转换为'System.Collections.Generic.List <string>'

  20. 20

    无法将类型System.Collections.Generic.Ienumerable <string>隐式转换为system.Linq.IOrderedEnumerable <AnonymousType#1>

  21. 21

    无法将类型'System.Collections.Generic.List <AnonymousType#1>'隐式转换为'System.Collections.Generic.List

  22. 22

    无法将类型'void'隐式转换为'System.Collections.Generic.Dictionary <string,bool>

  23. 23

    无法将类型'System.Collections.Generic.List <>'隐式转换为'System.Collections.Generic.IList <>'

  24. 24

    无法将类型'System.Collections.Generic.IEnumerable <string>隐式转换为字符串

  25. 25

    无法将类型'System.Linq.IQueryable'隐式转换为'System.Collections.Generic.List

  26. 26

    无法将类型“System.Collections.Generic.List<<匿名类型:>>”隐式转换为“System.Collections.Generic.List”

  27. 27

    无法将匿名类型隐式转换为 System.Collections.Generic.List

  28. 28

    无法将类型“System.Collections.Generic.List<Object>”隐式转换为“string”

  29. 29

    无法将类型“字符串”隐式转换为“System.Collections.Generic.List<int>”

热门标签

归档