Page 1 of 1

[Bug ] when generatr database is "No object found"

Posted: Tue 15 Nov 2011 15:26
by pyzboc
when I has Table per hierarchy (tph) generate Databaseid error !

this is model:
public abstract class people
{
int32 ID;(entity key,identity)
char type;
}
public class Student : people
{
when type=="s"
...
}
public class worker : people
{
when type=='w'
}

this model is vaild.

then generatr database Script is error :"No object found"
why?

Posted: Thu 17 Nov 2011 17:58
by StanislavK
Could you please describe the issue more precisely? For example, please specify the following:
- the ORM solution you are working with (e.g., Entity Framework or LinqConnect);
- the DBMS your model should work with;
- the version of Entity Developer you are using.

Generally, this issue may occur if you are working in the model-first mode, and no storage part of the model was created. If this is the case, please perform one of the following to create the storage part:
- enable the 'Regenerate Storage' check box in the 'Update Database from Model' wizard;
- enable mapping synchronization in the Synchronization -> Mapping node of the 'Model Settings' dialog box (double-click the model canvas to open its settings).

If the issue persists, please send us the model, with which this error occurs, so that we are able to analyze it in more details.