I have a class and a interface in data access layer. i have declare property in class and declare method in interface. now i want implement method named insEmployee() in class and i want to pass data through collection to insEmployee().
Thanks
Shailendra

Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 26, 2010, 10:48 PM EDT
public partial class WESCC {
private List<WESCCCategory> categoryField;
private string displayMessageField;
public List<WESCCCategory> Category {
get {
return this.categoryField;
}
set {
this.categoryField = value;
}
}
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 26, 2010, 10:51 PM EDT
You need to create an object for that list and then you need to add the informatin like this.
WESCC objNewWESCC= new WESCC();
objNewWESCC.Category = new List<WESCCCategory>();
.
.
.
objNewWESCC.Category.Add(objNewCategory);