TAILIEUCHUNG - Professional DotNetNuke ASP.NET Portals wrox phần 8

Skin bao gồm một số file HTML cơ bản, trong đó có các vị trí để đặt nội dung, menu và các tính năng khác cùng với các file ảnh, file định dạng (stylesheets), Javascript; tất cả thường được đóng gói trong một file Zip | Developing Modules The Database Layer Public Overrides Sub UpdateEvent ByVal ItemId As Integer _ ByVal Description As String ByVal DateTime As Date _ ByVal Title As String ByVal ExpireDate As Date _ ByVal UserName As String ByVal Every As Integer _ ByVal Period As String ByVal IconFile As String _ ByVal AltText As String ConnectionString DatabaseOwner _ ObjectQualifier UpdateEvent ItemId Description _ DateTime Title GetNull ExpireDate UserName _ GetNull Every GetNull Period GetNull IconFile _ GetNull AltText End Sub End Region You can see there is a one-to-one relationship within this class so each method has a corresponding stored procedure within your SQL database. So let s break down a method here and explain what is happening. We ll use the GetEvents method. Each event is a public method that overrides a corresponding method within the base class DataProvider which you inherited in the beginning of the class. So not only do you have a corresponding method in this class for each stored procedure you also have a corresponding method in the base DataProvider class which is located in the main module project. The method within the base class is an abstracted method that your module only deals with this enables you to totally separate the physical database interactions from your module assembly. Next you ll notice that all parameters that the stored procedure accepts are passed to your methods as well. In addition you then execute the command and pass the database connection information such as the connection string database owner account object qualifier name of the stored procedure and the parameters it accepts. The method then returns an IDataReader if appropriate as in SQL select statements containing the result set from the database using the provided by the Microsoft Data Access Application Block you imported at the beginning of the class. Finally in order to handle null values returned from the database .

TÀI LIỆU MỚI ĐĂNG
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.