Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
how to create the relations in c# classes
on 8/5/2012 |
| Views : 808 | Status :
| Replies : 1
Write New Post
Un Answered Posts
how to create one to one relations in c#,
and how to create one to many,
and explain what are the realtions in c#, it was there from beging c#,
Reply with Attachment
one to one:
suppose you have two classes: class1 and class2. you define a field in class1, the type of this field is defined to be class2. Then, you need to define the other field in class2, the type of this field is class1, then, you can create one to one relation in C#.
one to many:
define a field in class1, the field type should be defined to be an array. while the type of the array elements is class2. define a field in class2, the field type is class1. thus you can create one to many relations.
Never give up! Smile to the world!
, if this helps please
Mark As Answer
Login to post response
ChEaP K-i-T-c-H-e-N-s FoR SaLe Trafford
select checkbox in datalist with out select link
what scenario using code first or entity framework
How to Fix this Issue Permanently in Sql Server
How to Restrict following Records in sql server
What is The Use of Method Hiding In C# although we having method overriding ?
Count the hit of website
how to compile two objects having same class in c# ?