예제 #1
0
        internal IndexSet GetPropertyIndexSet(PropertyStateFilter filter)
        {
            IndexSet indexSet = new IndexSet();

            DataProperty[] fproperties = this.FProperties;
            if (fproperties != null)
            {
                for (int index = 0; index < fproperties.Length; ++index)
                {
                    if (DataObject.IsAcceptable(fproperties[index], filter))
                    {
                        indexSet[index] = true;
                    }
                }
            }
            return(indexSet);
        }
예제 #2
0
 public UpdatePlan(PropertyStateFilter filter) => this.FFilter = filter;
예제 #3
0
 private static bool IsAcceptable(DataProperty prop, PropertyStateFilter filter) => prop != null && !prop.Metadata.IsId && !prop.Metadata.IsSelector && (filter == PropertyStateFilter.Assigned ? prop.IsAssigned : prop.IsModified);