由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - DbSet<> 和 List<> 有什么区别?
相关主题
mvc4到底比web form application好在哪里?一个网站和app的project (转载)
NuGet到底有多少用处?网页上读者comment有必要存在server side吗?
版上的各位,我们弄个DESIGN PATTERN学习小组吧?asp.net针对sql server写的程序,如果database变成oracle,怎么转换?
有人装过git server端吗,windows server 2008 r2asp.net membership /existing database
请问关于shared cache[合集] 菜人问问,你们都在database上干什么??
bamboo?Who can tell me why i cannot connect to the SQL db file ?
foxpro and c#Re: 又开始认证了SQL 2012 (转载)
请教这样的小系统怎么做image with RadioButtonList c#
相关话题的讨论汇总
话题: list话题: dbset话题: data话题: 区别话题: database
进入DotNet版参与讨论
1 (共1页)
c*********e
发帖数: 16335
1
DbSet<> 和 List<> 有什么区别?
2个貌似都可以做 Getall(),get(int id),put(object o),delete(int id).
一个是repository class里面的;一个是context class里面的。
x**n
发帖数: 461
2
First, you can not use List<> in a DbContext; Second, DbSet<> doesn't have
the data in memory, at least not all data, most of them are still in the
database; third, can you query a List<>?
x**n
发帖数: 461
3
First, you can not use List<> in a DbContext; Second, DbSet<> doesn't have
the data in memory, at least not all data, most of them are still in the
database; third, can you query a List<>?
t********n
发帖数: 728
4
DbSet is specific for DB operation, the data is in the Database, List is
more generic, the data is in the memory.
1 (共1页)
进入DotNet版参与讨论
相关主题
image with RadioButtonList c#请问关于shared cache
access database问题bamboo?
error .mdf file unable to attach in Visual Studio 2013 win (转载)foxpro and c#
how to list all opened sockets?请教这样的小系统怎么做
mvc4到底比web form application好在哪里?一个网站和app的project (转载)
NuGet到底有多少用处?网页上读者comment有必要存在server side吗?
版上的各位,我们弄个DESIGN PATTERN学习小组吧?asp.net针对sql server写的程序,如果database变成oracle,怎么转换?
有人装过git server端吗,windows server 2008 r2asp.net membership /existing database
相关话题的讨论汇总
话题: list话题: dbset话题: data话题: 区别话题: database