没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Using CSLA 4
Creating Business Objects
Rockford Lhotka
Using CSLA .NET 4: Creating Business Objects
Copyright © 2011-2012 by Marimer LLC
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying, recording, or by any information
storage or retrieval system, without the prior written permission of the copyright owner.
Trademarked names may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, we use the names only in an editorial fashion and to the
benefit of the trademark owner, with no intention of infringement of the trademark.
Editor: Teresa Lhotka
The information in this book is distributed on an “as is” basis, without warranty. Although every
precaution has been taken in the preparation of this work, the author shall not have any liability
to any person or entity with respect to any loss or damage caused or alleged to be caused directly
or indirectly by the information contained in this work.
The source code for this book (CSLA 4 version 4.1.0) is available at
http://www.lhotka.net/cslanet.
Errata or other comments about this book should be emailed to errata@lhotka.net.
Revision: 1.1
Acknowledgements
Neither this book, nor CSLA 4, would have
been possible without support from Magenic.
Magenic is the premier .NET development
company in the US, and is a Microsoft Gold
Certified Partner.
You can reach Magenic at
http://www.magenic.com.
CSLA .NET has attracted a community of very
thoughtful, intelligent and dedicated people.
You can find many of them at
http://forums.lhotka.net.
The bug fixes and feature enhancements
described in this book come, in no small part,
through the encouragement and feedback
provided by this stellar community.
Thank you all!
About the Author
Rockford Lhotka is the author of more than 17 books on developing software using the Microsoft
platform and technologies. He is a Microsoft Regional Director and a Microsoft MVP. Rockford
speaks at many conferences and user groups around the world. He is the Chief Technology Officer
at Magenic (www.magenic.com), a company that specializes in planning, designing, building and
maintaining your enterprise’s most mission critical systems.
Using CSLA 4: Creating Business Objects Page i
Copyright © 2012 Marimer LLC
Contents
Introduction ........................................................................................................................................................... 1
Organization of the Book .......................................................................................................................................... 1
Framework Code and Samples .................................................................................................................................. 1
Chapter 1: Key Object Concepts ............................................................................................................................. 3
Stereotypes ............................................................................................................................................................... 3
Serialization .............................................................................................................................................................. 4
Choosing Serializers ............................................................................................................................................. 5
Configuring CSLA .NET to use NetDataContractSerializer ............................................................................... 5
Configuring CSLA .NET to use MobileFormatter ............................................................................................. 6
Object Lifetime .......................................................................................................................................................... 6
Object Relationships ................................................................................................................................................. 6
Containment ........................................................................................................................................................ 7
Using .................................................................................................................................................................... 7
Object Identity and Equality ...................................................................................................................................... 8
Platform Differences in .NET and Silverlight ............................................................................................................. 9
Limitations on Reflection ..................................................................................................................................... 9
Asynchronous Server Access .............................................................................................................................. 10
Threading ........................................................................................................................................................... 11
Data Access ........................................................................................................................................................ 11
Property Declarations ............................................................................................................................................. 12
Basic CSLA 4 Property Concepts ......................................................................................................................... 13
Basic Property Implementation..................................................................................................................... 13
Helper Methods ............................................................................................................................................ 14
RegisterProperty and PropertyInfo<T> ......................................................................................................... 14
Manual and Managed Backing Fields ............................................................................................................ 17
Properties and Stereotypes................................................................................................................................ 18
Types of Property Declaration ........................................................................................................................... 18
Read-Write .................................................................................................................................................... 19
Read-Write with No Rules ............................................................................................................................. 22
Read-Write with Value Conversion ............................................................................................................... 23
Read-Only ...................................................................................................................................................... 25
Read-Only with Value Conversion ................................................................................................................. 25
Child Object Reference .................................................................................................................................. 26
Child Object Reference with Lazy Loading .................................................................................................... 27
Properties with Manual Backing Fields ......................................................................................................... 30
Inter-Graph Reference .................................................................................................................................. 35
Using Reference ............................................................................................................................................ 35
Non-Generic LoadProperty Method .............................................................................................................. 37
Method Declarations .............................................................................................................................................. 37
剩余136页未读,继续阅读
资源评论
- qq_239773292017-02-09.NET 方面关于DDD的教程,很不错,非常好
araid
- 粉丝: 2
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- C语言基础-C语言编程基础之Leetcode编程题解之第39题组合总和.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第38题外观数列.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第37题解数独.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第36题有效的数独.zip
- C语言基础-C语言编程基础之Leetcode编程题解之第35题搜索插入位置.zip
- index.wxml
- C语言基础-C语言编程基础之Leetcode编程题解之第33题搜索旋转排序数组.zip
- 基于Python实现的手写数字识别系统源码.zip
- 从网页提取禁止转载的文字
- C语言基础-C语言编程基础之Leetcode编程题解之第32题最长有效括号.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功