菜鸟发问:
dbml与edmx有什么区别
用哪个更好呀?
谢谢!

解决方案 »

  1.   

    楼主是问 linq to sql 和 entity framework ?都只是试用过一下,感觉entity framework比较好用。
      

  2.   

    是Linq to SQL Classes 与ADO.NET Entity Data Model
    用法上有什么不同吗?
    网上能找到dbml的例子,
    要先生成datacontext对像
    string strCon="...";
     LinqToSqlDataDataContext linq =new LinqToSqlDataDataContext (strCon) ;
    var student=from info in linq.student
         select new{
               学号=info.id;
               姓名=info.cname;
            }那edmx应该怎样用呢?