由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - dot net Q: dataset, entity data model, LINQ, entity framework
相关主题
《Entity Framework 4 实战》PDF][合集] C++ question -- how to save objects
C# 访问数据库的问题a C# question
database access using C# .net2008 3.5, window form求教web programming
Hibernate值得深入学习吗?问一下关于http persistent connection的问题
《C# 5.0 核心技术》第5版[PDF]《Python标准库示例》英文文字版[PDF]
rx framework / rxJava use case?how to protect your javascript
求教:c++中如何从raw data中创建对象?什么是计算器的persistence?
J2EE究竟指什么?Programming ASP.NET MVC 4
相关话题的讨论汇总
话题: entity话题: linq话题: dataset话题: framework话题: data
进入Programming版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
晕头转向了,他们是什么关系,趋势如何?
x**n
发帖数: 461
2
dataset: a collection of data that know how to persist themselves, refer to
active record.
Entity data model: model the domain.
LINQ: query the data.
Entity Framework: an OR/M library with extra features.
w*s
发帖数: 7227
3
大牛,什么情况用dataset,什么情况用别的?
现在趋势是什么?

to

【在 x**n 的大作中提到】
: dataset: a collection of data that know how to persist themselves, refer to
: active record.
: Entity data model: model the domain.
: LINQ: query the data.
: Entity Framework: an OR/M library with extra features.

s***o
发帖数: 2191
4
Dataset is a component from ADO.NET. You can think it as a mini in-memory
database (that maps to part of your back end database). It is very "
heavyweight" so you'd better consider other approaches first. It's still
useful in some situations, for example, when you do "bulk" operations.
Linq is a very important language feature that you will use everyday. But if
you mean "Linq to Sql", then ignore it. You have Entity Framework now.
For "entity data model", I assume you mean EDM in entity framework. Usually
you don't have to dig into such low level concepts to be able to use EF,
especially when you take the "Code First" approach, which is also my
suggestion.
Use EF (or nHibernate) as the primary data access technique, go back to the
raw ADO.NET when performance is critical or the problem domain is very
complex (possibly with the help of micro ORMs such as Dapper, Massive, etc).
That's the way I would go.

【在 w*s 的大作中提到】
: 晕头转向了,他们是什么关系,趋势如何?
x**n
发帖数: 461
5
There is no 大牛 in this world. The difference is just experiences.
If your platform has native support for active record, you may use dataset.
Generally, if your system is simple enough, you may go dataset. Most time,
if starting from domain modeling, and you want your domain model(the core of
your application) to exist for long time, model it as persistence ignorance
(PI), not knowing how to persist itself. Then use OR/M to map it to
persistence (most time it is relational database). The most popular choices
are EF and NHibernate.
By the way, why not ask on the .net board? There are more people talking
about .net tech than here.

【在 w*s 的大作中提到】
: 大牛,什么情况用dataset,什么情况用别的?
: 现在趋势是什么?
:
: to

w*s
发帖数: 7227
6
thanks a lot !
btw, didn't know there's a .net board.

of
ignorance
choices

【在 x**n 的大作中提到】
: There is no 大牛 in this world. The difference is just experiences.
: If your platform has native support for active record, you may use dataset.
: Generally, if your system is simple enough, you may go dataset. Most time,
: if starting from domain modeling, and you want your domain model(the core of
: your application) to exist for long time, model it as persistence ignorance
: (PI), not knowing how to persist itself. Then use OR/M to map it to
: persistence (most time it is relational database). The most popular choices
: are EF and NHibernate.
: By the way, why not ask on the .net board? There are more people talking
: about .net tech than here.

1 (共1页)
进入Programming版参与讨论
相关主题
Programming ASP.NET MVC 4《C# 5.0 核心技术》第5版[PDF]
persistence的选择rx framework / rxJava use case?
big data讲究四个v求教:c++中如何从raw data中创建对象?
干货,goodbug关于cassandra durability的论断你敢信么?J2EE究竟指什么?
《Entity Framework 4 实战》PDF][合集] C++ question -- how to save objects
C# 访问数据库的问题a C# question
database access using C# .net2008 3.5, window form求教web programming
Hibernate值得深入学习吗?问一下关于http persistent connection的问题
相关话题的讨论汇总
话题: entity话题: linq话题: dataset话题: framework话题: data