Пример #1
0
 public static void SetChildrenAdapter <TContext, TView>(this IShadowMapper mapper, TContext context, IShadow <TView> shadow, IBackingDataHandler <TContext, TView> adapter) where TView : class
 {
     shadow.State.Set(adapter);
 }
Пример #2
0
 public static void ClearChildrenAdapter <TContext, TView>(this IShadowMapper mapper, TContext context, IShadow <TView> shadow) where TView : class
 {
     shadow.State.Delete <IBackingDataHandler <TContext, TView> >();
 }
Пример #3
0
        public static void RemoveChildren <TContext, TView>(this IShadowMapper mapper, TContext context, IShadow <TView> shadow, BasePrimitive <TView> current) where TView : class
        {
            var adapter = shadow.State.Get <IBackingDataHandler <TContext, TView> >();

            adapter.Remove(context, current);
        }