没有合适的资源?快使用搜索试试~ 我知道了~
Programming Entity Framework Code First
5星 · 超过95%的资源 需积分: 10 10 下载量 51 浏览量
2012-01-03
15:48:58
上传
评论
收藏 5.94MB PDF 举报
温馨提示
试读
192页
Programming Entity Framework Code First 你懂的
资源推荐
资源详情
资源评论
Programming Entity Framework:
Code First
Julia Lerman and Rowan Miller
Beijing
•
Cambridge
•
Farnham
•
Köln
•
Sebastopol
•
Tokyo
Programming Entity Framework: Code First
by Julia Lerman and Rowan Miller
Copyright © 2012 Julia Lerman, Rowan Miller. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles (http://my.safaribooksonline.com). For more information, contact our
corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com.
Editor: Meghan Blanchette
Production Editor: Teresa Elsey
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Revision History for the First Edition:
2011-11-18 First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449312947 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Programming Entity Framework: Code First, the image of a common bittern, and
related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-31294-7
[LSI]
1321545608
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1. Welcome to Code First . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Modeling with EF Before Code First 1
Inception of Code First 2
Getting Code First to Developers in Between .NET Releases 3
Writing the Code…First 4
Managing Objects with DbContext 6
Using the Data Layer and Domain Classes 7
Getting from Classes to a Database 8
Working with Configuration 10
Configuring with Data Annotations 10
Configuring with the Fluent API 11
Creating or Pointing to a Database 12
What Code First Does Not Support 12
Choosing Code First 13
Learning from This Book 15
2. Your First Look at Code First . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Introducing EF to the Domain Classes 18
Putting the Pieces Together in an Example 18
Convention for Table, Schema, and Column Names 22
Convention for Keys 23
Convention for String Properties 23
Convention for Byte Array 24
Convention for Booleans 24
Convention for One-to-Many Relationships 24
Overriding Convention with Configurations 25
Configuring with Data Annotations 25
Understanding How Model Changes Impact Database Initialization 27
Data Annotations and Validation-Aware UIs 30
iii
剩余191页未读,继续阅读
资源评论
- sunny_dlmu2014-08-22学习Entity Framework的很好资料,英文版的,慢慢学些,谢谢分享!
神都码农
- 粉丝: 17
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功