TAILIEUCHUNG - Thinking in C# phần 7

Lớp DataSet là gốc rễ của một cái nhìn quan hệ của dữ liệu. DataSet có DataTables, có DataColumns xác định các loại trong DataRows. Mô hình cơ sở dữ liệu quan hệ đã được giới thiệu bởi Edgar F. Codd trong đầu những năm 1970. Khái niệm về bảng lưu trữ dữ liệu trong các hàng cột mạnh mẽ, đánh máy có thể dường như được định nghĩa của một cơ sở dữ liệu là gì, nhưng Codd chính thức của các khái niệm và những người khác như bình thường (một quá trình mà không cần thiết. | Random access with Seek The Stream base class contains a method called Seek that can be used to jump between records and data sections of known size or sizes that can be computed by reading header data in the stream . The records don t have to be the same size you just have to be able to determine how big they are and where they are placed in the file. The Seek method takes a long implying a maximum file size of 8 exabytes which will hopefully suffice for a few years and a value from the SeekOrigin enumeration which can be Begin Current or End. The SeekOrigin value specifies the point from which the seek jumps. Although Seek is defined in Stream not all Streams support it for instance one can t jump around a network stream . The CanSeek bool property specifies whether the stream supports Seek and the related Length and SetLength mehods as well as the Position method which returns the current position in the Stream. If CanSeek is false and one of these methods is called it will throw a NotSupportedException. This is poor design. Support for random access is based on type not state and should be specified in an interface say ISeekable that is implemented by the appropriate subtypes of Stream. If you use you should use a negative number for the offset performing a Seek beyond the end of the stream moves to the end of the file . ReadByte will return a -1 etc. . This example shows the basic use of c12 using System using class FibSeek Stream src FibSeek Stream src src void DoSeek SeekOrigin so if so -10 so else 494 Thinking in C 10 so int i 10 bytes from 0 is 1 so char i public static void Main string args foreach string fName in args FileStream f null try f new FileStream fName FibSeek fs new FibSeek f 12 catch .

TỪ KHÓA LIÊN QUAN
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.