public void OnSelectedForeignKeyChanged() { if (SelectedForeignKey == null) { EntityNonScalarPropertiesIndex = -1; return; } if (EntityNonScalarProperties != null) { int oldVal = EntityNonScalarPropertiesIndex; EntityNonScalarPropertiesIndex = EntityNonScalarProperties.IndexOf(SelectedForeignKey.NavigationName); if ((EntityNonScalarPropertiesIndex == oldVal) && (EntityNonScalarPropertiesIndex > -1)) { OnEntityNonScalarPropertiesIndexChanged(); } } }
public void DoAnalise(string navigationName = null) { OnForeignKeyTypesIndexChanged(); if (EntityNonScalarProperties.Count < 1) { CollectEntityNonScalarProperties(); } if (EntityProperties.Count < 1) { CollectEntityScalarProperties(); } if (string.IsNullOrEmpty(navigationName)) { return; } if (EntityNonScalarProperties == null) { return; } if (EntityNonScalarProperties == null) { return; } int i = EntityNonScalarProperties.IndexOf(navigationName); if (i > -1) { int oldval = EntityNonScalarPropertiesIndex; EntityNonScalarPropertiesIndex = i; if (oldval == i) { OnEntityNonScalarPropertiesIndexChanged(); } } }