problem with converting system.action<test.person> to test.Person</test.person>
LINQ
1
Posts
1
Posters
0
Views
1
Watching
-
i'm trying create association between two classes,role class is the parent and person is the child class.
//this is the role class
private EntitySet _People;
public Role() {
_People = new EntitySet(
new Action(Attach_Person),
new Action(Detach_Person));
}private void Attach_Person(Person entity) {
entity.Role = this;
}private void Detach_Person(Person entity) {
entity.Role = null;
}but when i compile it i get the error "argument 1 cannot cannot convert from system.actionto test.Person any idea why this appens