Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

DML on DB Tables ?

$
0
0

Hi Kristian ,

i think i found the problem place , i enhanced the PropertiesGenerator.ttinclude in the way that ObservableCollections are created. 

( this was described in Telerik HP to do a change from IList<> to ObservableCollection<> ) 

if i do this the Delete as described has the Problem that the ORM tries to delete from an intermediate Table that is not existing. 

i enhanced function GenerateFieldForProperty

        if (property.IsNavigationProperty && property.IsIEnumerable)
        {
            propertyType = "ObservableCollection<" + property.Type + ">";
            initialValue = " = new " + propertyType + "()";
        } 

 and  GenerateClassPropertySignature with

         if (property.IsNavigationProperty && property.IsIEnumerable)
        {
            propertyType = "ObservableCollection<" + property.Type + ">";
        }

 it looks like the ORM works then in different ways, because with IList it works as expected.

What could i do to make the change to ObservableCollection without having this impact on Delete ?

regards thomas

 

 


Viewing all articles
Browse latest Browse all 94857

Trending Articles