cannot access some classes in Type per Table inheritance?
Posted: Thu 18 Nov 2010 09:11
0. i generated a model form Oracle with dotConnect,
1. i created a base class name ClinicObject, because a few of tables in DBMS contained same columns. so i want to derive them from ClinicObject (see following link: Screen-Snap Link 1).
2. i finished the derived relationship (Type per Table).
some of derived class do not have any property else except the properties from the BaseClass (ClinicObject) for instance:
3. but i found some questions in Context:
there is no AddToDeriveClass(), instead, there is only AddToClinicObject() in Context;
there is no property of Context named DeriveClass, so i cannot access the ObjectSet by using Context.DeriveClass
i can insert DeriveClass, but i cannot update or delete, and i found that when i try to query the Context.ClinicObject, a Exception in which there is a innerException named Devart.Data.Oracle.OracleException,
and ORA-01790 occurred!
(See Screen-Snap Link 2)
so how to access (query, update, delete) this special derivedClasses?
thx.
Screen-Snap Link 1
Screen-Snap Link 2
1. i created a base class name ClinicObject, because a few of tables in DBMS contained same columns. so i want to derive them from ClinicObject (see following link: Screen-Snap Link 1).
2. i finished the derived relationship (Type per Table).
some of derived class do not have any property else except the properties from the BaseClass (ClinicObject) for instance:
Code: Select all
public DeriveClass : ClinicObject
{}
3. but i found some questions in Context:
there is no AddToDeriveClass(), instead, there is only AddToClinicObject() in Context;
there is no property of Context named DeriveClass, so i cannot access the ObjectSet by using Context.DeriveClass
i can insert DeriveClass, but i cannot update or delete, and i found that when i try to query the Context.ClinicObject, a Exception in which there is a innerException named Devart.Data.Oracle.OracleException,
and ORA-01790 occurred!
(See Screen-Snap Link 2)
so how to access (query, update, delete) this special derivedClasses?
thx.
Screen-Snap Link 1
Screen-Snap Link 2