TAILIEUCHUNG - Adding Restrictions to DataTable and DataColumn Objects phần 3

myPrimaryKey = OrderID myPrimaryKey = ProductID = OrderID = = False = False | myPrimaryKey OrderID OrderID False False 0 1 -1 False True Reading from the Order Details DataTable myPrimaryKey OrderID myPrimaryKey ProductID OrderID False False 0 1 -1 False False ProductID False False 0 1 -1 False False UnitPrice True False 0 1 -1 False False Adding Restrictions by Calling the DataAdapter Object s FillSchema Method Instead of adding restrictions yourself you can add them by calling the FillSchema method of your DataAdapter. The FillSchema method does the following Copies the schema information from the database. Creates DataTable objects in your DataSet if they don t already exist. Adds the constraints to the DataTable objects. Sets the properties of the DataColumn objects appropriately. The properties of the DataColumn objects set by FillSchema include the following The DataColumn name-which is stored in the ColumnName property. The DataColumn .NET data type-which is stored in the DataType property. The maximum length of a variable length data type-which is stored in the MaxLength property. Whether 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.