r*****3 发帖数: 143 | 1 中文名: Entity Framework 4 实战
原名: Entity Framework 4 in Action
作者: Stefano Mostarda
Marco De Sanctis
and Daniele Bochicchio
图书分类: 软件
资源格式: PDF
版本: 英文文字版/更新源代码
出版社: Manning
书号: 9781935182184
发行时间: 2011年
地区: 美国
语言: 英文
简介:
内容介绍:
Entity Framework 4 in Action is an example-rich tutorial that helps .NET
developers learn and master the subject. It begins by explaining object/
relational mapping and then shows how you can easily transition to EF from
ADO.NET. Through numerous focused examples and two large... 阅读全帖 |
|
s**********o 发帖数: 14359 | 2 举个例子吧,ORM比较常用的就是.NET的Entity Framework,
Entity Framework DATA MODEL放到VISUAL STUDIO里面,具体ENTITY的PHYSICAL
TABLE怎么存储的,TABLE之间的RELATIONSHIP人不管的,MODEL直接进入编程,
由DEVELOPER来控制,这样编程就方便灵活了很多,基本可以撇开DBA和DATA ARCHITECT,
没有数据和PHYSICAL TABLE也可行进行编程,有了TABLE之后再去MAPPING
一说ENTITY,就是抽象的东西,放到DATABASE就变成TABLE和VIEW
放到PROGRAMMING里就是CLASS。 |
|
s***o 发帖数: 2191 | 3 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 framewor... 阅读全帖 |
|
s***o 发帖数: 2191 | 4 just tried Entity Framework to build some simple report page, and its
performance is "shocking". With "raw" ADO.NET, the page loads in seconds;
and with Entity Framework approach, it takes more than 1 minutes...
Maybe and hopefully I am using Entity Framework in an "incorrect" way. |
|
x**n 发帖数: 461 | 5 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. |
|
q**w 发帖数: 11 | 6 I want to define some ENTITIES in DTD, but I am not sure whether
I can include ELEMENTs in a ENTITY. I only know the value of a ENTITY
is a string in which I can define some ATTRIBUTEs. |
|
s****h 发帖数: 3979 | 7 说的是text analysis/mining里的entity?
所有的text analysis工具都有这个功能吧。大多都是用dbpedia/wikipedia做entity
的数据源,根据link找出entity之间关系。
alchemyapi, clarabridge, lexalytics都有。 |
|
w***u 发帖数: 17713 | 8 如果是同一个entity,那么这个entity到底是怎么对待尔撒和穆罕默德的? |
|
b******e 发帖数: 1861 | 9 网上找不到答案,在这问一声。在系统里,我们设了二级缓存用ehcache。但是有几个
entity class
我们需要disable二级缓存,因为我们会有情况需要直接走jdbc去更新表,曾经想过用
api evict
cache,但是由于我们系统有多个server,不想搞cache synchronization,现在看看有
没有办法
disable cache for just some entity. |
|
g*****g 发帖数: 34805 | 10 In ehcache configuration, use fully qualified class name and you can
override the default cache configuration for a type of entity.
In hbm you can also disable caching of a certain entity all together,
if that's what you want. |
|
r*****s 发帖数: 985 | 11 if purely export/import,
maybe exporting to db scripts is good enough,
however,
validation is also needed,
so what's the general solution?
mark the entities with JAXB,
marshall/unmarshall the entities,
and dump them into xml?
sounds the right way? |
|
|
x******4 发帖数: 23 | 13 公司A拥有公司B 20%的股份。头儿让我查是不是VIE,要不要consolidate 到A的
Financial Sstatement。可是我看了好长时间的 FIN46,还是没有明白。大家帮帮我吧。
If equity is not sufficient or the equity investors do not have the
characteristics of a controlling financial interest, the entity is subject
to consolidation under FIN 46 and therefore is a VIE.
可是接下去又说,If that group as a whole would not be the primary
beneficiary, the reporting entity is not required to consolidate the
financial results of the VIE into its financial statement.
The primary benef |
|
g**1 发帖数: 10330 | 14 路透社:
CHINA HAS LARGELY FINALISED 'UNRELIABLE ENTITIES LIST' - SOURCES
CHINA'S PUBLICATION OF LIST DEPENDS ON HOW SINO-U.S. TRADE TALKS PROGRESS -
SOURCES
Clearly designed as a last minute pressure tactic on today's mini-deal and
raising uncertainty. |
|
s*******u 发帖数: 692 | 15 本来就是个pass-through entity, 一个人不雇佣, 算哪门企业?
就应该直接按照个人所得税收税, 而不是按照企业收税。 |
|
d****9 发帖数: 517 | 16 我已经有这张卡 LP用同样的公司再去申请被拒 说是一个biz entity只能有一张Citi
AA Biz卡 有这样的说法吗? 多谢! |
|
t********b 发帖数: 128 | 17 After reading some information in this board, I'm planning to register am
entity LLC in NY state. However, I am not sure how exactly this will be
handled. Can anyone please share some information?
1. Would myself be enought to register LLC? My partner is currently in China
. If her information is required, what documents she needs to present?
2. In general what documents should I provide?
3. How do I register the company? Can this done electronically or I have to
go somewhere in NY?
4. How much |
|
p********i 发帖数: 116 | 18 请求一下帮助,我现在准备申请J1 签证,在DS160表中 Person/Entity Paying for
Your Trip 这一项应该选择self 还是other? 谢谢! |
|
w****e 发帖数: 707 | 19 You may purchase from any ‘commercial’ outlet you would like (e.g. Amazon,
Best Buy, Expansys, Costco). We will not accept receipts from non-
commercial entities such as e-bay, craigslist, or other person-to-person
transactions. |
|
|
l****z 发帖数: 29846 | 21 这个pope就是个傻逼, 他怎么不说玉皇大帝, 还有如来佛祖和耶和华也是同一个entity
? |
|
b*********8 发帖数: 985 | 22 马克思主义其实也是传承于基督教,只不过拿掉了耶和华而已。共产主义的各尽所能各
取所需就是千禧年描绘的构想吗。但能说是一个entity吗?
难道说宗教也是天下文章一大抄?
我看这个大牧师有些老糊涂了? |
|
n*****g 发帖数: 626 | 23 To answer Mr. Joe Liu's accusation --
USTC-SV i.e. USTC Alumni Association in Silicon Valley is
a registered non-profit organizaion in the State of California
since 2002 with EIN 06-1662608.
USTCAF i.e. USTC Alumni Foundation is a registered non-profit
organization in the State of Delaware since 1995 with 501(c)(3)
tax-exemption status.
On the other hand,as admitted by Mr. Joe Liu, USTCIF is NOT
an officially registered entity in China.
As far as I know, it does not even have a bylaw. |
|
w****a 发帖数: 155 | 24 最近有个项目要做entity recognition, 大老板要用 expert system 推出的 cogito
, 号称有做semantic network 很牛。 但以前没听过这个软件, 可能是我孤陋寡闻。
不知这里有用过的没有, 有什么评价。 除了这个软件,有哪些商用的或开源的比较好
。 |
|
r*******w 发帖数: 121 | 25 can the identifying relationship set for a weak entity be more than
binary? |
|
n******1 发帖数: 3756 | 26 面向对象的数据库和关系型数据有什么本质区别
数据库里面的entity由不同field的定义,那和对象的属性似乎也可以一一对应,是不
是因为关系型数据库要照顾relationship,所以很多时候一个schema不是一个完整的
object
我一直没理解这个区别,所以也不理解ORM到底在干什么 |
|
|
N********n 发帖数: 8363 | 28
Entity Framework is the official ORM of M$. It could be somewhat useful
but I still believe it comes down to how well the underline databases
are designed rather than which ORM you use. |
|
s***o 发帖数: 2191 | 29 I read several blogs saying this. L2S has gone into "maintenance mode" and
no team inside M$ is working on it. L2S still works in your application but
there will be no further development.
M$ is trying to push developers to use Linq to Entities instead of Linq to
Sql. I know neither in details so I cannot tell how different they are.
Are you sure M$ will release Linq to Oracle if it is not already available?
Linq |
|
c**t 发帖数: 2744 | 30 Entities don't support Oracle as well...
but |
|
N********n 发帖数: 8363 | 31
If you just need a quick dirty CRUD DB w/o considering of performance,
you can use Entity Framework or any other ORMs. If you do care about
performance, you have to start from designing a sound DB. |
|
c**d 发帖数: 579 | 32 正在琢磨怎么把公司那些几千行的stored procedure转成linq to entities |
|
c**d 发帖数: 579 | 33 Which one did you mean, stored procedure or LINQ to Entities? |
|
l*s 发帖数: 783 | 34 如果只是用Linq to Entities来重新包装DAL去call stored procedure问题不大。
如果是说打算用Linq query来重新实现所有的stored procedure就要慎重了。 |
|
c**t 发帖数: 2744 | 35 LINQ to Entities usually has performance issue... |
|
|
o****e 发帖数: 916 | 37 正好问个EF的问题
user table有个ID field
product table 有个 UserID field, 是user id的foreign key
现在有个database的entities object,比如 _entities
User user = _entities.Users.First(u=>u.ID == 1)
list user.Products
这时有另外一个连接对数据库操作,删除了user 1的一个product
但如果对原先的 _entities 再运行代码
user = _entities.Users.First(u=>u.ID == 1)
返回的user.Products collection还是原来的,删掉那个还在,试了refresh user
object也没有用。
求高手指点!谢谢! |
|
S***k 发帖数: 370 | 38 the instance _entities holds the initial info loaded from the database.
a new instance of the database entity is needed to get the latest records in
database. |
|
S***k 发帖数: 370 | 39 This could help:
http://stackoverflow.com/questions/3653009/entity-framework-and
Creating a context does not cost too much. If your application is web based
and accessed by multiple users, creating a new context for each request and
disposing the context instance by "using" could help to reduce the DB load
caused by the refreshing.
different |
|
B*****i 发帖数: 80 | 40 前辈们,肿么理解下面的话,
"The essential difference is that EF allows for stronger decoupling between
the database schema and the classes that you query. Instead of querying
classes that closely represent the database schema, you query a higher-level
abstraction described by an Entity Data Model. This offers extra
flexibility, but incurs a cost in both performance and simplicity.”
能给个example吗? |
|
w*s 发帖数: 7227 | 41 1. say my c# code uses Linq to entity framework.
2. Now in SQL Server Management Studio, i added another column to a table
how's my c# project pick up this change pls ?
i didn't see a "refresh data source" ... |
|
p*******d 发帖数: 359 | 42 手写的。
感觉是table名的,usersupplier,entity framework就假定有一个column叫userid了。 |
|
|
|
r***r 发帖数: 181 | 45 using CMP , there are two Entity beans , E1 and E2 .
E1 has a foreign key reference to E2.
when calling E1.remove() , got an ejb exception , saying " can not updat
e Table 1 to NULL, because Table 1 set "NOT NULL" constraints.
How to fix that ? I do not want to remove any constraints from the schem
a.
THx |
|
s******e 发帖数: 493 | 46 Got to write entity beans. must use them due to the politics even they suck.
Also the db schema is quite complicated due to the history and some wierd
requirements. It cannot be cahnged :-)
My question is about joint table(maybe it shouldn't be called joint table).
for example, table A has many-many relationship with table B, a joint table
mapping this relationship also has a column to specify the relation type,
which is many-one to the relation type table.
1. Must I have a bean class for the jo |
|
b******e 发帖数: 1861 | 47 In hbm you can also disable caching of a certain entity all together,
if that's what you want.
这个有什么online reference么?能不能给我个link? |
|
a********e 发帖数: 78 | 48 假如想实现 entity recognition, relation extraction这些功能的话,除了GATE,
还有 哪些其它的open source library。 |
|
w****a 发帖数: 155 | 49 最近有个项目要做entity recognition, 大老板要用 expert system 推出的 cogito
, 号称有做semantic network 很牛。 但以前没听过这个软件, 可能是我孤陋寡闻。
不知这里有用过的没有, 有什么评价。 除了这个软件,有哪些商用的或开源的比较好
。 |
|
|