示例#1
0
        internal void Execute(HandlerValueType type, object value)
        {
            using (IConnectinContext cc = DBContext.GetConnection(DBContext.CurrentConnectonType))
            {
                IExecuteHandler handler = ExecuteHandler;

                object result = ExecuteHandler.Execute(cc, value, type);
                if (handler is GetValue)
                {
                    if (result != null && result != DBNull.Value)
                    {
                        Value = (T)result;
                    }
                }
                else
                {
                    Value = (T)result;
                }
            }
        }
示例#2
0
 private void OnAdd(IExecuteHandler handler)
 {
     handler.Execute(_context);
 }