This question is locked. New answers and comments are not allowed.
Hello.
I have added parent table to existing child table with existing data. I want all current data from child table to be deleted during automatic database update.
Here is the code ( SchemeUpdateInfo.NewTables does not exist, it's just for an example of what I want to do ):
var schemaUpdateInfo = schema.CreateUpdateInfo(
new
SchemaUpdateProperties() );
// Here I want to check if parent table was absent
//Like this: if( schemeUpdateInfo.NewTables.Contains("ParentTable")){ db.ChildTable.DeleteAllOnSubmit(db.ChildTable);}
if
(schemaUpdateInfo.HasScript)
{
schema.ForceUpdateSchema(schemaUpdateInfo);
}