TAILIEUCHUNG - Lập trình Wrox Professional Xcode 3 cho Mac OS part 41

Mô hình dữ liệu là một công cụ trực quan cho các đối tượng dữ liệu defi ning và các mối quan hệ của họ, được gọi là một lược đồ dữ liệu. Một defi nes lược đồ thực thể có chứa tài sản. Tài sản có thể được giá trị hoặc các mối quan hệ với các đơn vị khác. Các dữ liệu công cụ mô hình hóa trong Xcode cho phép bạn tạo và chỉnh sửa một mô hình dữ liệu, như thể hiện trong hình 15-1. . | 15 Data Modeling WHAT S IN THIS CHAPTER Create a data schema Define entities properties and relationships Migrate between data schema versions Quickly create a user interface Data modeling is a visual tool for defining data objects and their relationships called a data schema. A schema defines entities that contain properties. Properties can be values or relationships to other entities. The data modeling tools in Xcode let you create and edit a data model as shown in Figure 15-1. The data model then becomes a resource that can be used by your application at run time. To use data modeling effectively you must have a rudimentary understanding of Core Data. If you are not familiar with Core Data start by perusing the Core Data Programming Guide. You can find it in the Xcode documentation or you can browse it online at http mac library documentation Cocoa Conceptual CoreData . This book is not about database development or Core Data programming but like the chapter on Interface Builder it s difficult to explain how to use the data modeling tools without describing what you re doing and why. This chapter focuses on the Xcode tools you use to develop and maintain data models. In the process I ll explain the data model s relationship to the run time environment and touch on some best practices. Just know that the modeling tools are the tip of the Core Data iceberg Core Data can be extended extensively with custom code all well beyond the scope of this book. If you have questions refer to the Core Data Programming Guide. Download at 310 I CHAPTER 15 DATA MODELING Miskatonicllniversity C3 1 1 1 B MiskatonicUniversity_ Entity a Abs Class No selected symbol t Entity Property Kind Type or Destina Entity cT a a L 1 o Name Multiple Values Parent No Parent Entity Class NSManagedQbject name Relationship Class Relationship Department Attribute String Relationship Faculty Relationship Faculty classes .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.