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 : 794 | 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
Solid Wood Bed Frame For Sale
How to add Parameterized Image in RDLC report?
How to Solve this Hosting Issues.
How do i get payment status in redirect page using bitpay?
What is autocomplete in input tag ?
How to pass parameters from html page to constructor of a class in C#
DropDownList Validation not working inside Gridview
Dynamic casting of objects in C#