none
ADO实体对象模型引入类库问题 RRS feed

  • 问题


  • 为什么在创建类库后在类库里创建了ADO实体对象模型后。引入类库对象名后,写 studentEntities stuent = new studentEntities();时会报方法或属性之间的调用不明确的错误呢??

    2013年5月7日 7:48

全部回复

  • 你的项目中有几个studentEntities类,因此:

    1)具体指定命名空间:YourNameSpace.studentEntities stuent = new YourNameSpace.studentEntities();

    2)删除重复的,只保留需要的那个。


    If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer

    Help by clicking:
    Click here to donate your rice to the poor
    Click to Donate
    Click to feed Dogs & Cats


    Found any spamming-senders? Please report at: Spam Report

    2013年5月7日 8:19
  •  ObjectQuery<users> s =entities.users;

    现在老是提示无法将类型system.data.entity.Dbset<Classlibrary1.users>隐式转为system.data.objects.ObjectQueryt<Classlibrary1.users>

    怎么办呀……

    2013年5月7日 10:09