This question is locked. New answers and comments are not allowed.
I'm new to ORM, and I'm guessing that what I'm trying to do is quite simple. I feel quite daft in asking this, but here's the situation....
Let's say we have two object classes: Person and Customer. The CustomerID field is technically a foreign key to the personID. The Customer class has a "Person" property. I have modified it per the directions at (http://www.telerik.com/support/kb/orm/general/direct-access-to-foreign-keys.aspx) to have both a Person and a PersonID property.
Customer has the following properties:
customerid
custComments
isActive
isDeleted
Person
PersonID
Person has the following properties:
id
firstname
lastname
... others such as cellphone, but not necessary to list for this discussion
Now, let's say I want to make a form with a datagrid bound to Customers (not a likely scenario, as the information is limited to the four properties shown above) and underneath that datagrid I want two textboxes bound to the Person.firstname and Person.lastname for the actively selected Customer.... how on earth would I accomplish this? I've tried adding one objectprovider and two objectviews (one with a base class of customer, the other with a base class of person). This sort of works, but the person object provider loads blank records it seems. Can someone point me in the right direction?
Let's say we have two object classes: Person and Customer. The CustomerID field is technically a foreign key to the personID. The Customer class has a "Person" property. I have modified it per the directions at (http://www.telerik.com/support/kb/orm/general/direct-access-to-foreign-keys.aspx) to have both a Person and a PersonID property.
Customer has the following properties:
customerid
custComments
isActive
isDeleted
Person
PersonID
Person has the following properties:
id
firstname
lastname
... others such as cellphone, but not necessary to list for this discussion
Now, let's say I want to make a form with a datagrid bound to Customers (not a likely scenario, as the information is limited to the four properties shown above) and underneath that datagrid I want two textboxes bound to the Person.firstname and Person.lastname for the actively selected Customer.... how on earth would I accomplish this? I've tried adding one objectprovider and two objectviews (one with a base class of customer, the other with a base class of person). This sort of works, but the person object provider loads blank records it seems. Can someone point me in the right direction?