Beispiel #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);
            }
        }
Beispiel #2
0
 protected internal override void PostRetrieving(PostRetrievingContext ctx)
 {
     RebindEvents();
 }
Beispiel #3
0
 public void AssignAndPostRetrieving(IMListPrivate newList, PostRetrievingContext ctx)
 {
     this.AssignMList((MList <T>)newList);
     this.PostRetrieving(ctx);
 }
Beispiel #4
0
 void IMListPrivate.ExecutePostRetrieving(PostRetrievingContext ctx)
 {
     this.PostRetrieving(ctx);
 }
Beispiel #5
0
 protected internal virtual void PostRetrieving(PostRetrievingContext ctx)
 {
 }
Beispiel #6
0
 protected internal override void PostRetrieving(PostRetrievingContext ctx)
 {
     throw new InvalidOperationException("ModelEntities are not meant to be retrieved");
 }