The Developers Guide says:
“Most of the time an object’s key consists of a single identifier and so the words “key” and “identifier” are used interchangeably. Multipart keys are possible and sometimes necessary but we prefer single part keys.”
How do you accommodate those in DevForce? For example, how would you do the equivalent of the following for Employee object with a composite key?
[DataObjectMethod(DataObjectMethodType.Select)]
public BindableList<Employee> GetSelectedEmployee(string sort, Int64 id) {
EntityQuery empQ = new EntityQuery(typeof(Employee), Employee.IdEntityColumn, EntityQueryOp.EQ, id);
Employee emp = this.PersistenceManager.GetEntity<Employee>(empQ);
BindableList<Employee> blist = new BindableList<Employee>();
blist.Add(emp);
CreateEmployeeBitMap(emp);
return blist;
}
Also, why do your prefer single-part keys?