How is the .net Entity Framework overkill versus LinqToSql?

后端 未结 6 2351
暗喜
暗喜 2021-02-14 15:16

I\'ve heard it said that the Entity Framework is overkill or that it\'s difficult to learn compared to LinqToSql.

I am wondering in what way? I used LinqToSql and like

6条回答
  •  一生所求
    2021-02-14 15:45

    Why don't just do a ordinary SQL query with SqlDataReader and bind them to a Generic List. Seems like SQL is a lot more flexible and powerful than any ORM. In practice anyway!! Is SQL dead? And that must be the fastest approach, and the downside is sql strings, but you are working closer to the metal and feels like you have a lot more control than using any ORM. Feels like ORM:s always has some bug and makes more complex queries a pain in the ass and takes a lot longer to write than if you should done them in plain SQL. Or is it just me who are kind of new to ORM:s?

提交回复
热议问题