示例#1
0
        public UpdateHandlerProxy(IDefaultHandlerFactory factory)
        {
            if (factory is null)
            {
                throw new ArgumentNullException(nameof(factory));
            }

            handler = (IUpdateHandler <TRow, TSaveRequest, TSaveResponse>)factory.CreateHandler <ISaveRequestProcessor>(typeof(TRow));
        }
示例#2
0
 public UpdatableExtensionBehavior(IDefaultHandlerFactory handlerFactory)
 {
     this.handlerFactory = handlerFactory ?? throw new ArgumentNullException(nameof(handlerFactory));
 }
 public LinkingSetRelationBehavior(IDefaultHandlerFactory handlerFactory)
 {
     this.handlerFactory = handlerFactory ?? throw new ArgumentNullException(nameof(handlerFactory));
 }
 public MasterDetailRelationBehavior(IDefaultHandlerFactory handlerFactory)
 {
     this.handlerFactory = handlerFactory ?? throw new ArgumentNullException(nameof(handlerFactory));
 }
示例#5
0
 public static THandler CreateHandler <THandler>(this IDefaultHandlerFactory handlerFactory, Type rowType)
 {
     return((THandler)handlerFactory.CreateHandler(rowType, typeof(THandler)));
 }