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; } } }
private void OnAdd(IExecuteHandler handler) { handler.Execute(_context); }