Ejemplo n.º 1
0
 protected override void OnValueChanged(IndexColumnBase element, bool oldValue, bool newValue)
 {
     if (element.Index != null)
     {
         if (!element.Index.Entity.nHydrateModel.IsLoading && !element.Store.InUndo)
         {
             if (element.Index.IndexType != IndexTypeConstants.User)
             {
                 throw new Exception("This is a managed index and cannot be modified.");
             }
         }
     }
     base.OnValueChanged(element, oldValue, newValue);
 }
Ejemplo n.º 2
0
 protected override void OnValueChanged(IndexColumnBase element, bool oldValue, bool newValue)
 {
     if (element.Index != null)
     {
         if (!element.Index.Entity.nHydrateModel.IsLoading && !element.Store.InUndo)
         {
             if (element.Index.IndexType != IndexTypeConstants.User)
                 throw new Exception("This is a managed index and cannot be modified.");
         }
     }
     base.OnValueChanged(element, oldValue, newValue);
 }