asp.net - Nesting objects and where to retrieve data? -
I am trying to rewrite the existing system with the object. I have created some basic things, but in reality they It's stuck on how you want to work.
These are the basic classes:
Public Class Course Public Accordion String as String Public AOSCD, String Public as a AOPCR In the form of String Public Relations, new reviews in the form of String Public Relations end in a collection of class folk classroom courses, add public sub (as a syllabus) Add as string as the public category is classified as Public Categories Classes collection bass Public Sub (as reviewed in Val REG) list. Add (REP) and Sub End Class Public Class Category Public Category ID String Public Category As String Public Comment String Public Large Value As Integer Publicly String Public Completion Date Date Ascending Category Public Category Categories Add content by adding outstanding public keys (ByVal cat as Category) End.Ext (cat) End Sub End Class
What can I do I want to be the one who has the following code:
Curriculum ([Coursecode]). Reviews (1) Categories ([Category]]. Comments or Courses (i) Reviews (1). Categories (x) Comment
[and] Some values that come from calling applications represent. >
The second part of my question is what is the best way to get the data. Do I have internally recovered internally internally (which can be a lot of data to recover) Or is there a way Like GetReviews (inside Course object) or GetComments (within review object) that is in the application to make these items before making available? In these modes, only these items should be filled within the guardian object, Or should the items be returned directly to the calling application?
However, I want to retrieve courses as a point. For me, it seems that In this course, the meaning of this method is itself (Course. Gate Course ([Staffumber]))
I am actually trying to get involved in O.O programming, as I have so far Used in procedural way. Are there any books that can recommend to anyone how to use OO and how to guide different methods to use it on the basis of work? I have made a lot of sections in the past which have always worked very well for me, but I am struggling to do this work on how to put them together in the best possible manner.
Another way to solve this problem is to say "yes" or "other class" to each class Include. It is called structure or aggregation in O. terminology and I consider it to be a more efficient design. However, you will write to read this data:
Courses. Gatecourse ([Curecode]). Reviews Gate Revueview (1). Categories Gate class ([Category ID]) Comments
Classes will look like this:
Public class course (string, course) (public) () 'Load your courses in me. Return to Public Function GetCourse (string as the course code) course Course (Course Code) and Function and Class
Comments
Post a Comment