what kind of association? in memory? an SQL database? inheritance (isA) -- a truck is a car? components (a car has wheels, motor, ...)? one-to-one? one-to-many? many-to-many?
please clarify.
B-) Gerry Lowry, Chief Training Architect, Paradigm Mentors Learning never ends... +1 705-999-9195 wasaga beach, ontario canada TIMTOWTDI =.there is more than one way to do it
Please be specific; please describe the concept that you wish to show.
"Does your dog bite?"
B-) Gerry Lowry, Chief Training Architect, Paradigm Mentors Learning never ends... +1 705-999-9195 wasaga beach, ontario canada TIMTOWTDI =.there is more than one way to do it
Here's a very short example of an associative class for you.
public class Student
{
public ReadOnlyList<Enrollment> Enrollments { get; }
}
// This is the associative class in this example
public class Enrollment
{
public decimal FinalGrade { get; }
public ReadOnlyList<Grade> AssignmentGrades { get; }
public class Class { get; }
}
public class Class
{
public string Name { get; }
public string Code { get; }
}
Regards
Dave
Provide an answer, and you enable a developer to code today. Show them how to find the answer using Google, and they can code forever.
Member
81 Points
178 Posts
Associative relationship between class
Oct 19, 2014 04:55 PM|life24|LINK
Hi,
I want implementation association relationship with two classes.
What i do?
Can you give me one example?
Star
14297 Points
5797 Posts
Re: Associative relationship between class
Oct 19, 2014 05:31 PM|gerrylowry|LINK
@life24
this seems to be a very open ended question.
q.v. http://weblogs.asp.net/gerrylowry/clarity-is-important-both-in-question-and-in-answer
what kind of association? in memory? an SQL database? inheritance (isA) -- a truck is a car? components (a car has wheels, motor, ...)? one-to-one? one-to-many? many-to-many?
please clarify.
Member
81 Points
178 Posts
Re: Associative relationship between class
Oct 19, 2014 05:58 PM|life24|LINK
Thank you for reply.
In Software Engineering we have Associative Relationship. I want show this concept.But practical. For example with c++ or c# language.
Star
14297 Points
5797 Posts
Re: Associative relationship between class
Oct 19, 2014 07:39 PM|gerrylowry|LINK
@life24 you are welcome.
sorry, at least for me, you're still lacking in clarity ...
Can you guess what Google returns as its first result for me?
answer: http://forums.asp.net/p/2013912/5795521.aspx?Re+Associative+relationship+between+class == your question in this thread.
the other Google links are obtuse.
again, at least for me, substantially more clarity is required.
Did you read http://weblogs.asp.net/gerrylowry/clarity-is-important-both-in-question-and-in-answer ?
Please be specific; please describe the concept that you wish to show.
"Does your dog bite?"
Contributor
5014 Points
2398 Posts
Re: Associative relationship between class
Oct 23, 2014 06:38 AM|DMW|LINK
Here's a very short example of an associative class for you.
Dave
Provide an answer, and you enable a developer to code today. Show them how to find the answer using Google, and they can code forever.