Exemple #1
0
        protected internal override void PostRetrieving(PostRetrievingContext ctx)
        {
            if (this.innerList.Any(a => a.RowId == null))
            {
                return; //The MList was changed in the entity PostRetriever, like UserChart Columns
            }
            if (this.innerList.Select(a => a.RowId !.Value).Duplicates().Any())
            {
                throw new InvalidOperationException("Duplicated RowId found, possible problem in LINQ provider");
            }

            if (this.innerList.Any(a => a.OldIndex.HasValue))
            {
                this.innerList.Sort(a => a.OldIndex !.Value);
            }
        }
Exemple #2
0
 protected internal override void PostRetrieving(PostRetrievingContext ctx)
 {
     RebindEvents();
 }
Exemple #3
0
 public void AssignAndPostRetrieving(IMListPrivate newList, PostRetrievingContext ctx)
 {
     this.AssignMList((MList <T>)newList);
     this.PostRetrieving(ctx);
 }
Exemple #4
0
 void IMListPrivate.ExecutePostRetrieving(PostRetrievingContext ctx)
 {
     this.PostRetrieving(ctx);
 }
Exemple #5
0
 protected internal virtual void PostRetrieving(PostRetrievingContext ctx)
 {
 }
Exemple #6
0
 protected internal override void PostRetrieving(PostRetrievingContext ctx)
 {
     throw new InvalidOperationException("ModelEntities are not meant to be retrieved");
 }