This question is locked. New answers and comments are not allowed.
Hi,
I have an abstract base class and then define the key. I can't do the horizontal inheritance. I get the following error message:
If I turn off the update of the database, there is no error message.
Here ist my app.config:
My base class has the following source code:
And a last my adress-class:
If I try to start the wizard the system produce the following error message:
I use VS 2008 and the lastet version of your components.
For help would be appreciated.
Christian
I have an abstract base class and then define the key. I can't do the horizontal inheritance. I get the following error message:
| Fehler 3 OpenAccess Error: Telerik.OpenAccess: Updating SQL schema failed. Unknown inheritance strategy: 3 for Berlin.Polizei.INGO.Daten.Basis.Adresse Polizei.Berlin.INGO.Daten.Basis |
If I turn off the update of the database, there is no error message.
Here ist my app.config:
| <?xml version="1.0"?> |
| <configuration> |
| <configSections> |
| <section name="openaccess" type="Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342" requirePermission="false" /> |
| </configSections> |
| <openaccess xmlns="http://www.telerik.com/OpenAccess"> |
| <references /> |
| <connections> |
| <connection id="INGO_TEST"> |
| <databasename>INGO_TEST001</databasename> |
| <servername>map-sql-0120</servername> |
| <integratedSecurity>False</integratedSecurity> |
| <user>INGO_TEST_Admin</user> |
| <password>ingo123</password> |
| <backendconfigurationname>mssqlConfiguration</backendconfigurationname> |
| </connection> |
| </connections> |
| <backendconfigurations> |
| <backendconfiguration id="mssqlConfiguration" backend="mssql"> |
| <managedManyToMany>True</managedManyToMany> |
| <managedOneToMany>True</managedOneToMany> |
| <ext.db-inheritance>horizontal</ext.db-inheritance> |
| <logging.logEvents>none</logging.logEvents> |
| <l2CacheEnabled>True</l2CacheEnabled> |
| <mappingname>mssqlMapping</mappingname> |
| </backendconfiguration> |
| </backendconfigurations> |
| <mappings current="mssqlMapping"> |
| <mapping id="mssqlMapping"> |
| </mapping> |
| </mappings> |
| </openaccess> |
| </configuration> |
My base class has the following source code:
| using System; |
| using Telerik.OpenAccess; |
| namespace Polizei.Berlin.INGO.Daten.Basis |
| { |
| [Persistent(IdentityField = "id")] |
| public abstract class MetaDaten |
| { |
| public MetaDaten() |
| { |
| } |
| protected Guid id ; |
| [FieldAlias("id")] |
| public Guid ID |
| { |
| get { return id; } |
| set { id = value; } |
| } |
| private string bezeichnung; |
| [FieldAlias("bezeichnung")] |
| public string Bezeichnung |
| { |
| get { return bezeichnung; } |
| set { bezeichnung = value; } |
| } |
| private DateTime aenderung; |
| [FieldAlias("aenderung")] |
| public DateTime Aenderung |
| { |
| get { return aenderung; } |
| set { aenderung = value; } |
| } |
| private DateTime erstellungsdatum; |
| [FieldAlias("erstellungsdatum")] |
| public DateTime Erstellungsdatum |
| { |
| get { return erstellungsdatum; } |
| set { erstellungsdatum = value; } |
| } |
| } |
| } |
| using Polizei.Berlin.INGO.Daten.Basis; |
| using Telerik.OpenAccess; |
| namespace Berlin.Polizei.INGO.Daten.Basis |
| { |
| [Persistent] |
| public class Adresse : MetaDaten |
| { |
| public Adresse() |
| { |
| } |
| private string strasse; |
| private string hausnummer; |
| private string plz; |
| private string ort; |
| private string geoKorordinate; |
| [FieldAlias("strasse")] |
| public string Strasse |
| { |
| get { return strasse; } |
| set { strasse = value; } |
| } |
| [FieldAlias("hausnummer")] |
| public string Hausnummer |
| { |
| get { return hausnummer; } |
| set { hausnummer = value; } |
| } |
| [FieldAlias("plz")] |
| public string Plz |
| { |
| get { return plz; } |
| set { plz = value; } |
| } |
| [FieldAlias("ort")] |
| public string Ort |
| { |
| get { return this.ort; } |
| set { this.ort = value; } |
| } |
| [FieldAlias("geoKorordinate")] |
| public string GeoKorordinate |
| { |
| get { return geoKorordinate; } |
| set { geoKorordinate = value; } |
| } |
| } |
| } |
If I try to start the wizard the system produce the following error message:
| Fehler 3 OpenAccess: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. |
| bei OpenAccessRuntime.Relational.metadata.RelationalClass.SetupInMemoryHandling() |
| bei OpenAccessRuntime.metadata.ClassMetaData.SetupInMemoryHandling() |
| bei OpenAccessRuntime.metadata.MetaDataBuilder.SetupInMemoryHandling(ClassMetaData[] classes) |
| bei OpenAccessRuntime.metadata.MetaDataBuilder.buildMetaData(DataObjectsRoot[] roots, Boolean ignoreNoClasses) |
| bei OpenAccessRuntime.Relational.RelationalMetaDataBuilder.buildMetaData(DataObjectsRoot[] roots, Boolean ignoreNoClasses) |
| bei OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b) |
| bei OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL() |
I use VS 2008 and the lastet version of your components.
For help would be appreciated.
Christian