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