TAILIEUCHUNG - Microsoft ADO .NET 4 Step by Step - p 25

Hiệp hội đặt Tất cả các trường hợp liên kết cho một loại kết hợp được xác định xuất hiện như là một bộ sưu tập riêng biệt được gọi là một hiệp hội thiết lập. Về mặt mô hình của Framework, một bộ kết hợp có chứa các định nghĩa trường mô tả một hiệp hội duy nhất giữa hai bảng. | 216 Microsoft 4 Step by Step Association set All association instances for a defined association type appear as a distinct collection called an association set. On the model side of the Framework an association set contains the field definitions that describe a single association between two tables. Navigation property A navigation property exposes the available data at the other end of an association. For instance in a customer-order association the Orders navigation property on a Customer entity object provides access to the zero or more Order entity instances associated with the specific customer. When viewed from the order side of that same relationship a customer-targeted navigation property on an Order entity instance links to the Customer object to which that order belongs. An entity can also contain foreign keys to an associated entity but these keys provide less direct access to related data. Entity set An entity set is the logical container for an entity and any other entities derived from that first entity. For example a PastDueOrder entity definition and the Order definition from which it derives would appear together in a single entity set. The closest parallel in a relational database might be a table and any views created that use only content from that base table. Entity container One or more entity sets appear within the context of an entity container the outermost conceptual construct within the Entity Framework. When writing code that interacts with entities you will always start by creating an instance of an entity container known as a context. The entity container is a lot like a database or DataSet each with its collection of tables entities . Entity Framework models define an entity container which in turn includes entity sets and association sets. An entity set contains one or more derived entity types. Entities are defined by their properties both simple and complex. The definition of an association always includes the two endpoints

Đã 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.