TAILIEUCHUNG - Expert VB 2005 Business Objects Second Edition phần 6

Dựa trên các nhà phát triển kinh doanh để chỉ ra khi một đối tượng đã được thay đổi và do đó đã trở thành bẩn . Tình trạng hiện tại của giá trị làNó có thể là một số các lớp học phải được khởi tạo như các đối tượng gốc một số trường hợp và là đối tượng trẻ em vào những người khác. | 322 CHAPTER 5 COMPLETING THE FRAMEWORK The Nullable property is a bit more complex however because it is sometimes possible to detect that a property is nullable even without the use of the DataObjectField attribute. This is due to the nullable support built into .NET Public Readonly Property Nullable As Boolean _ Implements Get Dim t As Type If Not orElse mIsNullable Then Return True End If If Then Return Is GetType Nullable End If Return False End Get End Property A property can be nullable if it is a reference type or if mIsNullable is True. It can also be nullable if the property is declared using the Nullable Of T generic type. Other Property Information The IDataSourceFieldSchema interface defines other properties as well. Some of these properties have little meaning for a business object. For instance there s no way to determine meaningful values for Scale and Precision based on a business object s property so these just return -1 Public ReadOnly Property Scale As Integer _ Implements Get Return -1 End Get End Property Other properties can be determined based on information from the PropertyDescriptor object passed into the ObjectFieldInfo constructor. That PropertyDescriptor object provides information about the specific business object property. The property s name for instance can be directly retrieved Public ReadOnly Property Name As String _ Implements Get Return End Get End Property Getting the Property s Data Type The DataType property is a bit complex. It must deal with the possibility that the business object s property was declared with the Nullable Of T generic type. Fortunately the Utilities. GetPropertyType method discussed earlier in the chapter deals with that case so it is called to ensure that the

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.