AndreyR wrote:Most of the issues are associated with the fact that we provide support for only one EntitySet per hierarchy, like Microsoft does.
We will investigate the possibity of adding support for multiple EntitySets, one for each hierarchy member.
Try using the explicit cast to the base class to modify the entities of the derived class.
As for the ORA-01790 error, please try adding the Devart.Data.Oracle.Entity.OracleEntityProviderServices.TypedNulls = true; line to the OnCreated partial method of the ObjectContext instance.
i have solved the ORA-01790 problem following your suggestion. and i want to ask about the deployment.
the solution of ORA-01790 should refer the Devar.Date.dll adn Devart.Date.Oracle.dll (set Copy Local = true), so when i finished the application building, how to deploy the two dll files on client computer? just simply copy the two dll files?
and the more important thing is that is there limited time for the dll files?
thx.
as for the following words:
Try using the explicit cast to the base class to modify the entities of the derived class.
i finally did the UPDATE or DELETE by ObjectContext.SaveChanges() of my model in which, as i said, there are some derived classes are just derived from baseClass (they had no more properties else).
however, the success of SaveChanges() i monitored by dbMonitor is that, the two coding ways ware different:
Code: Select all
var query = .......;
var obj = query.First();
obj = entityWithNewData; // the obj is a same class as entityWithNewData
context.SaveChanges(); // there is no change because there seems be no UPDATE statement in dbMonitor
Code: Select all
var query = .......;
var obj = query.First();
// the obj is a same class as entityWithNewData
obj.Name=entityWithNewData.Name;
obj.Code=entityWithNewData.Code;
// ... obj.Property = entityWithNewData.SameProperty
context.SaveChanges(); // the context is really changed!
so is this the only way to change the context for update? i mean if i have many many classes, there would be many many
Code: Select all
obj.Property1 = entityWithNewData.Property1;
// 2=2;
// 3=3;
// ....